Add runner network & config file

This commit is contained in:
Akumatic 2025-04-10 02:04:41 +02:00
parent f2dabcf992
commit b6b034ef87

View File

@ -17,6 +17,7 @@ services:
- "2222:22"
networks:
- internal
- runner
- proxy
environment:
USER_UID: 30003
@ -75,13 +76,15 @@ services:
restart: unless-stopped
volumes:
- runner:/data
- /srv/gitea/runnerconfig.yaml:/config.yaml
- /var/run/docker.sock:/var/run/docker.sock
networks:
- internal
- runner
environment:
GITEA_RUNNER_REGISTRATION_TOKEN_FILE: /run/secrets/runner_token
GITEA_INSTANCE_URL: http://server:3000/
GITEA_INSTANCE_URL: http://server:3000
GITEA_RUNNER_NAME: Gitea Runner
CONFIG_FILE: /config.yaml
secrets:
- runner_token
@ -119,6 +122,8 @@ volumes:
networks:
internal:
name: gitea-internal
runner:
name: gitea-runner
proxy:
name: proxy-git
external: true