-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-prod.yml
66 lines (61 loc) · 1.56 KB
/
docker-compose-prod.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.7"
services:
db:
image: postgres:10.5
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=admin_bot_db
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
logging:
options:
max-size: 10m
max-file: "3"
ports:
- "5438:5432"
volumes:
- ./postgres-data:/var/lib/postgresql/data
networks:
- dbnet
admin_bot:
image: ghcr.io/frc-1721/adminbot:main
environment:
BOT_TOKEN: "secret.token.here"
depends_on:
db:
condition: service_healthy
volumes:
- promo:/app/promo
links:
- "db:database"
- "admin_interface:interface"
restart: "always"
command: "true"
admin_interface:
image: ghcr.io/frc-1721/admininterface:main
volumes:
- promo:/app/admin_interface/static/promo
environment:
LOG_LEVEL: "DEBUG"
TZ: "America/New_York"
ports:
- 8000:8000
restart: "always"
watchtower:
image: containrrr/watchtower
environment:
WATCHTOWER_NOTIFICATIONS: shoutrrr
WATCHTOWER_NOTIFICATION_URL: "discord://mK0Opd9ov35Z61mzLFympguG8QgyDtEbNcOhfde-b7A7ti4VbTpgaXoz9aSiYm0mKOjF@886982405058088980"
WATCHTOWER_NOTIFICATION_TEMPLATE: '{{range .}}{{.Time.Format "2006-01-02 15:04:05"}} ({{.Level}}): {{.Message}}{{println}}{{end}}'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: "always"
command: --interval 120
# Docker Volumes
volumes:
promo: