From 00e943867bd9cba6fe031bf70278b90d683b5c7f Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sun, 4 Dec 2022 03:04:42 +0100 Subject: [PATCH] Add network section --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8b257cc..048947a 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,22 @@ ``` dokku apps:create woodpecker-agent -dokku config:set woodpecker-agent --no-restart WOODPECKER_SERVER= +dokku config:set woodpecker-agent --no-restart WOODPECKER_SERVER=woodpecker.web.1:9000 dokku config:set woodpecker-agent --no-restart WOODPECKER_AGENT_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.