-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.44 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
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BACKEND_URL=http://backend:5000
env_file:
- ./frontend/.env
depends_on:
- backend
networks:
- angelfive-network
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
environment:
- NODE_ENV=production
- PORT=5000
- FRONTEND_URL=http://localhost:3000,http://frontend:3000
- ML_SERVICE_URL=http://ml-service:8000
- REDIS_URL=redis://redis:6379
env_file:
- ./backend/.env
depends_on:
redis:
condition: service_healthy
ml-service:
condition: service_started
networks:
- angelfive-network
ml-service:
build:
context: ./ml-service
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- PORT=8000
env_file:
- ./ml-service/.env
volumes:
- ml_model_cache:/app/model_cache
networks:
- angelfive-network
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
networks:
- angelfive-network
networks:
angelfive-network:
driver: bridge
volumes:
redis_data:
ml_model_cache: