feat: add runner config to mount Docker socket in job containers

This commit is contained in:
2025-11-15 17:39:04 +01:00
parent 808044bc2e
commit b5eec43304
2 changed files with 34 additions and 0 deletions

View File

@@ -72,9 +72,11 @@ services:
container_name: ${DEV_COMPOSE_PROJECT_NAME}_gitea_runner
restart: unless-stopped
privileged: true
command: ["act_runner", "daemon", "--config", "/data/config.yaml"]
volumes:
- gitea_runner_data:/data
- /var/run/docker.sock:/var/run/docker.sock
- ./runner-config.yaml:/data/config.yaml:ro
environment:
TZ: ${TIMEZONE:-Europe/Berlin}
GITEA_INSTANCE_URL: https://${DEV_GITEA_TRAEFIK_HOST}

32
dev/runner-config.yaml Normal file
View File

@@ -0,0 +1,32 @@
log:
level: info
runner:
file: .runner
capacity: 1
envs: {}
env_file: .env
timeout: 3h
insecure: false
fetch_timeout: 5s
fetch_interval: 2s
labels: []
cache:
enabled: true
dir: ""
host: ""
port: 0
external_server: ""
container:
network: ""
privileged: false
options: "-v /var/run/docker.sock:/var/run/docker.sock"
workdir_parent: ""
valid_volumes: []
docker_host: ""
force_pull: false
host:
workdir_parent: ""