-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
43 lines (36 loc) · 1.34 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
version: "2.4"
services:
# monitor of teeworlds servers
twstatus-bot:
container_name: twstatus-bot
# uncomment to build from source
#build: .
# comment when building from source
image: ghcr.io/jxsl13/twstatus-bot:main # you might want to use a specific tag here like v0.2.x
restart: unless-stopped
depends_on:
- postgres
environment:
TWBOT_DISCORD_TOKEN: ${TWBOT_DISCORD_TOKEN:?err}
TWBOT_SUPER_ADMINS: ${TWBOT_SUPER_ADMINS:?err}
TWBOT_DISCORD_GUILD_ID: ${TWBOT_DISCORD_GUILD_ID:?err}
TWBOT_DISCORD_CHANNEL_ID: ${TWBOT_DISCORD_CHANNEL_ID:?err}
TWBOT_POLL_INTERVAL: ${TWBOT_POLL_INTERVAL:-16s}
TWBOT_LEGACY_FORMAT: ${TWBOT_LEGACY_FORMAT:-false}
TWBOT_POSTGRES_HOSTNAME: "postgres"
TWBOT_POSTGRES_PORT: "5432"
TWBOT_POSTGRES_USER: ${TWBOT_POSTGRES_USER:?err}
TWBOT_POSTGRES_PASSWORD: ${TWBOT_POSTGRES_PASSWORD:?err}
TWBOT_POSTGRES_SSLMODE: "disable"
postgres:
container_name: postgres
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${TWBOT_POSTGRES_PASSWORD:?err}
POSTGRES_USER: ${TWBOT_POSTGRES_USER:?err}
POSTGRES_DB: ${TWBOT_POSTGRES_DATABASE:?err}
volumes:
- ./volumes/postgresql/data:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432