-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
38 lines (38 loc) · 1.14 KB
/
compose.yml
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
28
29
30
31
32
33
34
35
36
37
38
services:
ci-bot:
build: .
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
environment:
APP_ID: ${APP_ID}
PRIVATE_KEY_FILE: /run/secrets/github_app_key
WEBHOOK_SECRET_FILE: /run/secrets/webhook_secret
PORT: 3001
secrets:
- github_app_key
- webhook_secret
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
interval: 1m30s
timeout: 30s
retries: 5
start_period: 5s
networks: [traefik]
labels:
- traefik.enable=true
- traefik.http.routers.ci-bot.rule=Host(`ci.slimevr.io`)
- traefik.http.routers.ci-bot.tls=true
- traefik.http.routers.ci-bot.tls.certresolver=letsencrypt
- traefik.http.services.ci-bot.loadbalancer.server.port=3001
secrets:
github_app_key:
file: ./github_key.pem
webhook_secret:
file: ./webhook_secret.txt
networks:
traefik:
external: true