1
0
Fork 0

Add network section

This commit is contained in:
Daniele Tricoli 2022-12-04 03:04:42 +01:00
parent 65719095ac
commit 00e943867b
1 changed files with 13 additions and 1 deletions

View File

@ -7,10 +7,22 @@
```
dokku apps:create woodpecker-agent
dokku config:set woodpecker-agent --no-restart WOODPECKER_SERVER=<secret>
dokku config:set woodpecker-agent --no-restart WOODPECKER_SERVER=woodpecker.web.1:9000
dokku config:set woodpecker-agent --no-restart WOODPECKER_AGENT_SECRET=<secret>
dokku storage:mount woodpecker-agent /var/run/docker.sock:/var/run/docker.sock
git push dokku main:main
```
#### Network
Set the agent in the same network of the server:
```
dokku network:set woodpecker-agent attach-post-create woodpecker-network
```
and use the container name in `WOODPECKER_SERVER` variable, so if the dokku app
of the server is called `woodpecker`, you will have to set it to
`woodpecker.web.1:9000` where `woodpecker.web.1` is the default name of the
container used by dokku and 9000 is the default port for GRPC.