forked from shivam222343/ETA-OTT-_V2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.app.yml
More file actions
56 lines (53 loc) · 1.58 KB
/
docker-compose.app.yml
File metadata and controls
56 lines (53 loc) · 1.58 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
# ============================================
# Docker Compose — Instance 1 (App Server)
# Frontend (Nginx) + Backend (Node.js)
# ============================================
services:
# ---- Backend API ----
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: eta-backend
restart: unless-stopped
env_file:
- ./backend/.env
environment:
- NODE_ENV=production
- ML_SERVICE_URL=${ML_SERVICE_URL:-http://host.docker.internal:8000}
ports:
- "5000:5000"
networks:
- eta-network
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# ---- Frontend (Nginx + React SPA) ----
frontend:
build:
context: ./eta-web
dockerfile: Dockerfile
args:
VITE_API_URL: /api
VITE_FIREBASE_API_KEY: ${VITE_FIREBASE_API_KEY}
VITE_FIREBASE_AUTH_DOMAIN: ${VITE_FIREBASE_AUTH_DOMAIN}
VITE_FIREBASE_PROJECT_ID: ${VITE_FIREBASE_PROJECT_ID}
VITE_FIREBASE_STORAGE_BUCKET: ${VITE_FIREBASE_STORAGE_BUCKET}
VITE_FIREBASE_MESSAGING_SENDER_ID: ${VITE_FIREBASE_MESSAGING_SENDER_ID}
VITE_FIREBASE_APP_ID: ${VITE_FIREBASE_APP_ID}
VITE_FIREBASE_MEASUREMENT_ID: ${VITE_FIREBASE_MEASUREMENT_ID}
container_name: eta-frontend
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
networks:
- eta-network
networks:
eta-network:
driver: bridge