2024-09-26 22:02:36 +00:00
|
|
|
---
|
|
|
|
forgejo_runner_env:
|
|
|
|
FORGEJO_INSTANCE_URL: https://git.serguzim.me/
|
|
|
|
FORGEJO_RUNNER_REGISTRATION_TOKEN:
|
|
|
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
|
|
|
|
|
|
|
forgejo_runner_compose:
|
|
|
|
watchtower: true
|
|
|
|
image: code.forgejo.org/forgejo/runner:3.3.0
|
|
|
|
volumes:
|
|
|
|
- ./config.yml:/config/config.yml
|
|
|
|
- data:/data
|
|
|
|
file:
|
|
|
|
services:
|
|
|
|
app:
|
|
|
|
hostname: "{{ ansible_facts.hostname }}"
|
|
|
|
command: forgejo-runner --config /config/config.yml daemon
|
|
|
|
depends_on:
|
|
|
|
- docker-in-docker
|
|
|
|
links:
|
|
|
|
- docker-in-docker
|
|
|
|
docker-in-docker:
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
2024-10-28 23:13:56 +00:00
|
|
|
restart: always
|
2024-09-26 22:02:36 +00:00
|
|
|
command: dockerd -H tcp://0.0.0.0:2375 --tls=false
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
volumes:
|
|
|
|
data:
|