ansible/roles/forgejo_runners/templates/runners/docker-compose.yml.j2
Julien Riou 0a0341e6f9
Some checks failed
/ ansible-docsmith (push) Successful in 34s
/ molecule (certbot) (push) Failing after 55s
/ molecule (galene) (push) Failing after 53s
/ molecule (golang) (push) Failing after 45s
Initial commit
Signed-off-by: Julien Riou <julien@riou.xyz>
2026-02-17 09:39:28 +01:00

27 lines
709 B
Django/Jinja

---
{{ ansible_managed | comment }}
services:
docker:
image: docker:dind
privileged: true
restart: always
volumes:
- certs:/certs
{% for runner in forgejo_runners %}
runner-{{ runner }}:
image: code.forgejo.org/forgejo/runner:{{ forgejo_runners_version }}
user: {{ ansible_facts.getent_passwd.forgejo[1] }}:{{ ansible_facts.getent_passwd.forgejo[2] }}
environment:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: /certs/client
restart: always
volumes:
- {{ forgejo_runners_config_dir }}/{{ runner }}:/data
- certs:/certs
command: 'forgejo-runner --config config.yml daemon'
{% endfor %}
volumes:
certs: