-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
75 lines (68 loc) · 1.57 KB
/
docker-compose.yaml
File metadata and controls
75 lines (68 loc) · 1.57 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
x-django: &django
image: ghcr.io/flare-foundation/data-availability:latest
env_file:
- .env
restart: unless-stopped
services:
db:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-d", "${DB_NAME}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- pg_data:/var/lib/postgresql
redis:
image: redis:8
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
django:
<<: *django
ports:
- "127.0.0.1:${SERVER_PROXY_PORT}:8000"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8000/api/health"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
process-ftso-data:
<<: *django
command: python manage.py process_ftso_data
depends_on:
db:
condition: service_healthy
django:
condition: service_healthy
process-fdc-data:
<<: *django
command: python manage.py process_fdc_data
depends_on:
db:
condition: service_healthy
django:
condition: service_healthy
delete-history:
<<: *django
command: python manage.py delete_history
depends_on:
db:
condition: service_healthy
django:
condition: service_healthy
volumes:
pg_data: