-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
45 lines (42 loc) 路 1.11 KB
/
Copy pathcompose.yml
File metadata and controls
45 lines (42 loc) 路 1.11 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
services:
app:
build: .
ports:
- "8080:8080"
environment:
- PORT=8080
- BASE_URL=${BASE_URL:-http://localhost:8080}
- SLACK_BOT_TOKEN=${SLACK_BOT_TOKEN}
- SLACK_SIGNING_SECRET=${SLACK_SIGNING_SECRET}
- LOCKDOWN_USERS=${LOCKDOWN_USERS}
- HACK_CLUB_CDN_KEY=${HACK_CLUB_CDN_KEY}
- API_USERNAME=${API_USERNAME}
- API_PASSWORD=${API_PASSWORD}
- DATABASE_URL=postgres://indigest:indigest@db:5432/indigest
depends_on:
db:
condition: service_healthy
restart: unless-stopped
db:
image: postgres:17-alpine
ports:
- "5433:5432"
environment:
POSTGRES_USER: indigest
POSTGRES_PASSWORD: indigest
POSTGRES_DB: indigest
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U indigest"]
interval: 5s
timeout: 5s
retries: 5
tunnel:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run --token ${TUNNEL_TOKEN}
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
volumes:
pgdata: