-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (57 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
64 lines (57 loc) · 1.02 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
services:
ml-service:
build: ./backend/ml-service
ports:
- "8000:8000"
volumes:
- ./backend/ml-service:/app
networks:
- backend
# frontend:
# build:
# context: ./frontend
# ports:
# - "3000:80"
# volumes:
# - ./frontend:/app
mongodb:
image: mongo:6.0
container_name: mongodb
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
networks:
- backend
mongodb-service:
build: ./backend/mongodb-service
ports:
- "8001:8001"
depends_on:
- mongodb
volumes:
- ./backend/mongodb-service:/app
networks:
- backend
redis:
image: redis:6.2
container_name: redis
ports:
- "6379:6379"
networks:
- backend
redis-service:
build: ./backend/redis-service
ports:
- "8002:8002"
depends_on:
- redis
volumes:
- ./backend/redis-service:/app
networks:
- backend
networks:
backend:
driver: bridge
volumes:
mongodb_data: