diff options
author | Earl Warren <contact@earl-warren.org> | 2023-10-06 16:18:09 +0200 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2023-10-06 16:22:03 +0200 |
commit | bf11dac84818afcbe22445e0ce2e456e9791d209 (patch) | |
tree | 4c0ad168f6b792761b139a3637e34d3cbe8c7682 /examples/docker-compose/compose-forgejo-and-runner.yml | |
parent | examples/docker-compose: upgrade to runner 3.0.1 (diff) | |
download | forgejo-runner-bf11dac84818afcbe22445e0ce2e456e9791d209.tar.xz forgejo-runner-bf11dac84818afcbe22445e0ce2e456e9791d209.zip |
examples/docker-compose: network: host is required
otherwise a network will be created with no route to the forgejo
instance and a checkout will fail to reach it
Diffstat (limited to 'examples/docker-compose/compose-forgejo-and-runner.yml')
-rw-r--r-- | examples/docker-compose/compose-forgejo-and-runner.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/docker-compose/compose-forgejo-and-runner.yml b/examples/docker-compose/compose-forgejo-and-runner.yml index 05a5110..ae432b9 100644 --- a/examples/docker-compose/compose-forgejo-and-runner.yml +++ b/examples/docker-compose/compose-forgejo-and-runner.yml @@ -62,6 +62,7 @@ services: sleep 1 ; done ; forgejo-runner generate-config > config.yml ; + sed -i -e "s|network: .*|network: host|" config.yml ; sed -i -e "s|labels: \[\]|labels: \[\"docker:docker://alpine:3.18\"\]|" config.yml ; chown -R 1000:1000 /data ' |