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>
22 lines
621 B
YAML
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
|