-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
50 lines (48 loc) · 1.28 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
50 lines (48 loc) · 1.28 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
services:
admin:
build: ../runPaceFlow-admin
container_name: rpf-admin
restart: unless-stopped
ports:
- "3030:3030"
env_file:
- ../runPaceFlow-admin/.env
environment:
- PORT=3030
- NODE_ENV=production
- RUNPACEFLOW_FRONTEND_URL=http://frontend:3000
- MAIN_SITE_API_TOKEN=${MAIN_SITE_API_TOKEN:?set MAIN_SITE_API_TOKEN}
- ACTIVITIES_DATABASE_URL=file:/app/data/shared.db
volumes:
- admin_data:/app/data
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3030/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
frontend:
build: .
container_name: rpf-frontend
restart: unless-stopped
ports:
- "3000:3000"
env_file:
- .env
environment:
- NODE_ENV=production
- PORT=3000
- RUNPACEFLOW_ADMIN_URL=http://admin:3030
- RUNPACEFLOW_ADMIN_API_TOKEN=${MAIN_SITE_API_TOKEN:?set MAIN_SITE_API_TOKEN}
- NEXT_PUBLIC_ADMIN_URL=https://admin.razet.me
depends_on:
admin:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
volumes:
admin_data: