Some checks failed
Test CI / test (pull_request) Failing after 40s
This allows containers to reach Forgejo at localhost:3001 for git operations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
565 B
Django/Jinja
18 lines
565 B
Django/Jinja
# {{ ansible_managed }}
|
|
log:
|
|
level: info
|
|
|
|
runner:
|
|
file: {{ forgejo_runner_data_dir }}/.runner
|
|
capacity: {{ forgejo_runner_capacity }}
|
|
timeout: {{ forgejo_runner_timeout }}
|
|
|
|
container:
|
|
network: "bridge"
|
|
privileged: {{ forgejo_runner_privileged | lower }}
|
|
# Map localhost to Docker host so containers can reach Forgejo at localhost:3001
|
|
# host-gateway is a special Docker value that resolves to the host IP
|
|
options: "--add-host localhost:host-gateway"
|
|
# Mount Docker socket so jobs can build containers
|
|
valid_volumes:
|
|
- /var/run/docker.sock
|