-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (49 loc) · 1.26 KB
/
docker-compose.yaml
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
name: motd-menu
services:
db:
image: 'postgres:latest'
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_USER=motd-menu
- POSTGRES_PASSWORD=123123
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready --username=motd-menu && psql --username=motd-menu --list"
]
interval: 1s
timeout: 60s
retries: 5
network_mode: host
restart: unless-stopped
server:
build:
context: .
target: server
depends_on:
db:
condition: service_healthy
environment:
- MOTD_ROOT_ADMINS=${MOTD_ROOT_ADMINS}
- MOTD_STEAM_API_KEY=${MOTD_STEAM_API_KEY}
- MOTD_WEB_PORT=${MOTD_WEB_PORT}
- MOTD_WEB_PORT_HTTPS=${MOTD_WEB_PORT_HTTPS}
- MOTD_DEBUG_LOG=${MOTD_DEBUG_LOG}
- MOTD_SSL_CERT=${MOTD_SSL_CERT}
- MOTD_SSL_PRIVATE_KEY=${MOTD_SSL_PRIVATE_KEY}
- MOTD_EFPS_KEY=${MOTD_EFPS_KEY}
- MOTD_TELEGRAM_BOT_TOKEN=${MOTD_TELEGRAM_BOT_TOKEN}
healthcheck:
test:
[
"CMD-SHELL",
"curl -ksf https://localhost:${MOTD_WEB_PORT_HTTPS}/healthcheck || exit 1"
]
interval: 1s
timeout: 60s
retries: 5
start_period: 300s
network_mode: host
restart: unless-stopped