-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-dev.yaml
56 lines (50 loc) · 1 KB
/
docker-compose-dev.yaml
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
services:
mongo1:
extends:
file: docker-compose-replica.yaml
service: mongo1
mongo2:
extends:
file: docker-compose-replica.yaml
service: mongo2
mongo3:
extends:
file: docker-compose-replica.yaml
service: mongo3
mongo-setup:
extends:
file: docker-compose-replica.yaml
service: setup
chat-service:
container_name: chat-service
build:
context: .
dockerfile: Dockerfile.dev
target: backend-chat-service-dev
depends_on:
- mongo1
- mongo2
- mongo3
volumes:
- ./backend/chat-service:/app/backend/chat-service
- /app/node_modules
ports:
- 8181:8181
chatgpt:
container_name: chatgpt
build:
context: .
dockerfile: Dockerfile.dev
target: frontend-dev
volumes:
- ./frontend:/app/frontend
- /app/node_modules
ports:
- 3000:3000
depends_on:
- chat-service
restart: unless-stopped
volumes:
mongo1:
mongo2:
mongo3: