-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
106 lines (101 loc) · 2.69 KB
/
docker-compose.prod.yml
File metadata and controls
106 lines (101 loc) · 2.69 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: "maccas-prod"
services:
web:
image: ghcr.io/accurate0/maccas-web:${SOURCE_COMMIT}
expose:
- 3000
links:
- "api:api"
depends_on:
api:
condition: service_healthy
environment:
- OLD_API_BASE_URL=https://api.maccas.one/v1
- API_BASE_URL=http://api:8000/v1
- DATABASE_URL=${WEB_DATABASE_URL}
- ADDRESS_HEADER=CF-Connecting-IP
dashboard:
image: ghcr.io/accurate0/maccas-dashboard:${SOURCE_COMMIT}
links:
- "api:api"
- "batch:batch"
- "event:event"
expose:
- 3001
depends_on:
migration:
condition: service_completed_successfully
api:
condition: service_healthy
event:
condition: service_healthy
batch:
condition: service_healthy
environment:
- API_BASE_URL=http://api:8000/v1
- EVENT_API_BASE=http://event:8001
- BATCH_API_BASE=http://batch:8002
- DATABASE_URL=${DASHBOARD_DATABASE_URL}
api:
image: ghcr.io/accurate0/maccas-api:${SOURCE_COMMIT}
links:
- "event:event"
- "batch:batch"
expose:
- 8000
depends_on:
migration:
condition: service_completed_successfully
event:
condition: service_healthy
batch:
condition: service_healthy
environment:
- EVENT_API_BASE=http://event:8001
- BATCH_API_BASE=http://batch:8002
- DATABASE__URL=${MACCAS_DATABASE_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1s
event:
image: ghcr.io/accurate0/maccas-event:${SOURCE_COMMIT}
expose:
- 8001
depends_on:
migration:
condition: service_completed_successfully
environment:
- DATABASE__URL=${MACCAS_DATABASE_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1s
batch:
image: ghcr.io/accurate0/maccas-batch:${SOURCE_COMMIT}
expose:
- 8002
restart: unless-stopped
depends_on:
migration:
condition: service_completed_successfully
environment:
- EVENT_API_BASE=http://event:8001
- SENSORDATA_API_BASE=http://sensordata:8080/v1
- DISABLE_JOBS=create-account,activate-account
- DATABASE__URL=${MACCAS_DATABASE_URL}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8002/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 1s
migration:
restart: on-failure
image: ghcr.io/accurate0/maccas-migration:${SOURCE_COMMIT}
environment:
- DATABASE_URL=${MACCAS_DATABASE_URL}