push example docker-compose for runner and forgejo

This commit is contained in:
Merith 2024-09-25 14:05:56 -07:00
parent 16e18662a0
commit 3c5ba1c1d2
3 changed files with 36 additions and 56 deletions

View file

@ -51,6 +51,7 @@ if [[ ! -f "${CONFIG_FILE}" ]]; then
sed -i "/^ network:/c\ network: host" ${CONFIG_FILE}
sed -i "/^ privileged:/c\ privileged: true" ${CONFIG_FILE}
sed -i "/^ options:/c\ options: -v /certs/client:/certs/client" ${CONFIG_FILE}
sed -i "/^ valid_volumes:/c\ valid_volumes:\n - /certs/client" ${CONFIG_FILE}
sed -i "/^ docker_host:/c\ docker_host: tcp://${DOCKER_HOST}:2376" ${CONFIG_FILE}
fi