-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
53 lines (46 loc) · 1.13 KB
/
docker-compose.prod.yml
File metadata and controls
53 lines (46 loc) · 1.13 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
49
50
51
52
53
version: '3.8'
services:
web:
image: ghcr.io/5queezer/gps-reliability/gps-web:latest
restart: always
ports:
- "3000:3000"
env_file: .env.production
api:
image: ghcr.io/5queezer/gps-reliability/gps-api:latest
restart: always
ports:
- "8000:8000"
env_file: .env.production
depends_on:
- db
- redis
worker:
image: ghcr.io/5queezer/gps-reliability/gps-api:latest
command: celery -A app.worker.celery_app worker --loglevel=info
restart: always
env_file: .env.production
depends_on:
- db
- redis
# Graceful shutdown: Allow 5 minutes for in-flight tasks to complete
stop_grace_period: 5m
stop_signal: SIGTERM
beat:
image: ghcr.io/5queezer/gps-reliability/gps-api:latest
command: celery -A app.worker.celery_app beat --loglevel=info
restart: always
env_file: .env.production
depends_on:
- worker
db:
image: postgres:15-alpine
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: .env.production
redis:
image: redis:7-alpine
restart: always
volumes:
postgres_data: