1
0
Fork 0
forgejo-runner/docker-compose.yml

28 lines
705 B
YAML
Raw Permalink Normal View History

2025-03-04 12:45:05 +01:00
services:
dind:
image: docker:dind
container_name: 'dind'
privileged: 'true'
2025-03-13 15:05:50 +01:00
command: ['dockerd', '-H', 'unix:///dind/docker.sock', '-G', '$RUNNER_GID']
2025-03-04 12:45:05 +01:00
restart: 'unless-stopped'
2025-03-13 15:05:50 +01:00
volumes:
- ./dind:/dind
2025-03-04 12:45:05 +01:00
runner:
image: 'data.forgejo.org/forgejo/runner:6.2.2'
links:
- dind
depends_on:
dind:
condition: service_started
container_name: 'runner'
environment:
2025-03-13 15:05:50 +01:00
DOCKER_HOST: 'unix:///dind/docker.sock'
2025-03-04 12:45:05 +01:00
user: $RUNNER_UID:$RUNNER_GID
volumes:
2025-03-13 16:32:50 +01:00
- ./config.yaml:/config.yaml
2025-03-04 12:45:05 +01:00
- ./data:/data
2025-03-13 15:05:50 +01:00
- ./dind:/dind
2025-03-04 12:45:05 +01:00
restart: 'unless-stopped'
2025-03-13 16:32:50 +01:00
command: '/bin/sh -c "sleep 5; forgejo-runner daemon -c /config.yaml"'