-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1.42 KB
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
services:
craftystatus:
image: craftystatus:latest
container_name: craftystatus
restart: unless-stopped
# ports:
# - "5000:5000"
environment:
# Timezone
- TZ=${TZ:-America/New_York}
# Discord Bot
- DISCORD_TOKEN=${DISCORD_TOKEN}
- DISCORD_OWNER_ID=${DISCORD_OWNER_ID}
- DISCORD_PREFIX=${DISCORD_PREFIX:-cs!}
# Crafty Controller API
- CRAFTY_BASE_URL=${CRAFTY_BASE_URL}
# Skip TLS verification?
# true = insecure, false = secure
# Useful for self-signed certificates, or local deployments
- CRAFTY_INSECURE_API=${CRAFTY_INSECURE_API:-false}
- CRAFTY_API_KEY=${CRAFTY_API_KEY}
# Database
- POSTGRES_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
# In the scheduler, should we update the statues
# which have no messages attached to them?
- UPDATE_ORPHANED_STATUS=${UPDATE_ORPHANED_STATUS:-true}
depends_on:
db:
condition: service_healthy
db:
image: postgres:17
container_name: craftystatus-db
restart: unless-stopped
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- ./docker/postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
interval: 5s
timeout: 5s
retries: 5