-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.37 KB
/
docker-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
39
40
41
42
43
44
45
46
47
48
49
50
services:
database:
image: postgres:latest
container_name: slashy-database
restart: unless-stopped
environment:
- POSTGRES_USER=slashy
- POSTGRES_PASSWORD=slashy
- POSTGRES_DB=slashy
volumes:
- slashy-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U slashy"]
interval: 5s
retries: 3
bot:
image: omznc/slashy:latest
container_name: slashy-bot
restart: unless-stopped
environment:
- DISCORD_TOKEN=
- DISCORD_CLIENT_ID=
- DATABASE_URL=postgresql://slashy:slashy@database/slashy
volumes:
- slashy-config:/config
labels:
- "com.centurylinklabs.watchtower.enable=true"
depends_on:
database:
condition: service_healthy
watchtower:
image: containrrr/watchtower
container_name: slashy-watchtower
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_POLL_INTERVAL=60
- WATCHTOWER_LABEL_ENABLE=true
depends_on:
bot:
condition: service_healthy
volumes:
slashy-config:
slashy-data: