-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
54 lines (50 loc) · 1.21 KB
/
docker-compose.prod.yml
File metadata and controls
54 lines (50 loc) · 1.21 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
version: '3.8'
services:
backend:
build:
context: .
dockerfile: apps/backend/Dockerfile
container_name: enigma-backend-prod
ports:
- "5000:5000"
environment:
- NODE_ENV=production
- PORT=5000
- FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}
secrets:
- firebase_credentials
restart: always
networks:
- enigma-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
frontend:
build:
context: .
dockerfile: apps/frontend/Dockerfile
container_name: enigma-frontend-prod
ports:
- "80:80"
environment:
- VITE_API_URL=${BACKEND_URL:-http://localhost:5000}
depends_on:
backend:
condition: service_healthy
restart: always
networks:
- enigma-network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
networks:
enigma-network:
driver: bridge
secrets:
firebase_credentials:
file: ./apps/backend/serviceAccountKey.json