2024-08-25 16:19:11 +01:00
|
|
|
services:
|
|
|
|
forgejo-runner:
|
2024-11-01 08:00:30 +00:00
|
|
|
image: code.forgejo.org/forgejo/runner:4.0.1
|
2024-08-25 16:19:11 +01:00
|
|
|
user: "{{ docker_user.id }}"
|
|
|
|
volumes:
|
|
|
|
- /mnt/data:/data
|
2024-09-09 12:07:47 +01:00
|
|
|
- ./config.yml:/data/config.yml
|
2024-08-25 16:19:11 +01:00
|
|
|
environment:
|
|
|
|
- TZ={{ timezone }}
|
2024-09-09 12:07:47 +01:00
|
|
|
- DOCKER_HOST=tcp://docker_proxy:2375
|
2024-08-25 16:19:11 +01:00
|
|
|
restart: unless-stopped
|
|
|
|
command: forgejo-runner daemon
|
2024-09-09 12:18:09 +01:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- forgejo_private
|
2024-08-25 16:19:11 +01:00
|
|
|
depends_on:
|
2024-09-09 12:07:47 +01:00
|
|
|
- docker_proxy
|
2024-08-25 16:19:11 +01:00
|
|
|
|
2024-09-09 12:07:47 +01:00
|
|
|
docker_proxy:
|
|
|
|
image: lscr.io/linuxserver/socket-proxy:latest
|
2024-08-25 16:19:11 +01:00
|
|
|
restart: unless-stopped
|
2024-09-09 12:07:47 +01:00
|
|
|
environment:
|
|
|
|
- POST=1
|
|
|
|
- CONTAINERS=1
|
|
|
|
- INFO=1
|
|
|
|
- IMAGES=1
|
|
|
|
- VOLUMES=1
|
|
|
|
- NETWORKS=1
|
|
|
|
- ALLOW_START=1
|
|
|
|
- ALLOW_STOP=1
|
|
|
|
- ALLOW_RESTARTS=1
|
|
|
|
- EXEC=1
|
|
|
|
tmpfs:
|
|
|
|
- /run
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2024-09-09 12:18:09 +01:00
|
|
|
networks:
|
|
|
|
- forgejo_private
|
2024-09-09 12:07:47 +01:00
|
|
|
logging:
|
|
|
|
driver: none
|
2024-09-09 12:18:09 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
forgejo_private:
|
|
|
|
internal: true
|