-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
27 lines (27 loc) · 945 Bytes
/
compose.yml
File metadata and controls
27 lines (27 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
services:
# Service principal : permet d'exécuter des commandes CLI manuelles (build, list, check, etc.)
github-runner-manager:
build: .
image: github-runner-manager:latest
container_name: github-runner-manager
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./runners_config.yaml:/app/runners_config.yaml:ro
- ./config:/app/config:ro
env_file:
- .env # Contient par ex: GITHUB_TOKEN=ghp_xxx
github-runner-scheduler:
image: github-runner-manager:latest
container_name: github-runner-scheduler
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./runners_config.yaml:/app/runners_config.yaml:ro
- ./config:/app/config:ro
env_file:
- .env
environment:
TZ: Europe/Paris
restart: unless-stopped
command: server # Lance le scheduler via supervisord
# Pour consulter les logs :
# docker logs -f github-runner-scheduler