furtka/ops/forgejo-runner/compose.yml
Daniel Maksymilian Syrnicki 6cf65f2c36
Some checks failed
CI / lint (push) Successful in 1m12s
CI / test (push) Successful in 32s
CI / validate-json (push) Successful in 22s
CI / markdown-links (push) Failing after 2s
ci: stand up forge-runner-01 with DinD sidecar, fix doc label bug
Bootstrap script + compose + config checked in under ops/forgejo-runner/
so a second runner is a scripted setup. runner-setup.md corrects the
register label format (<name>:docker://<image>, not bare names) and
documents the Ubuntu systemd-resolved DNS gotcha.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 21:31:35 +02:00

22 lines
621 B
YAML

services:
runner:
image: code.forgejo.org/forgejo/runner:6
container_name: forgejo-runner
restart: unless-stopped
environment:
- DOCKER_HOST=tcp://docker-in-docker:2375
- CONFIG_FILE=/data/config.yml
volumes:
- ./data:/data
depends_on:
- docker-in-docker
command: /bin/sh -c "sleep 5; forgejo-runner daemon --config /data/config.yml"
docker-in-docker:
image: docker:dind
container_name: forgejo-runner-dind
restart: unless-stopped
privileged: true
environment:
- DOCKER_TLS_CERTDIR=
command: dockerd -H tcp://0.0.0.0:2375 --tls=false