generated from CS3219-AY2324S1/course-assessment-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
110 lines (100 loc) · 2.57 KB
/
docker-compose.yml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3"
services:
frontend:
container_name: frontend
build:
context: ./frontend/app/
dockerfile: Dockerfile.dev
volumes:
- ./frontend/app:/app:delegated
- /app/node_modules
ports:
- "8000:5173"
api-gateway:
container_name: api-gateway
build:
context: ./backend/api-gateway/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/api-gateway/app:/app:delegated
- /app/node_modules
ports:
- "8001:80"
user-service:
container_name: user-service
build:
context: ./backend/user-service/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/user-service/app:/app:delegated
- /app/node_modules
ports:
- "8002:80"
question-service:
container_name: question-service
build:
context: ./backend/question-service/server/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/question-service/server/app:/app:delegated
depends_on:
question-service-db:
condition: service_healthy
ports:
- "8003:80"
matching-service:
container_name: matching-service
build:
context: ./backend/matching-service/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/matching-service/app:/app:delegated
- /app/node_modules
ports:
- "8004:80"
collaboration-service:
container_name: collaboration-service
build:
context: ./backend/collaboration-service/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/collaboration-service/app:/app:delegated
- /app/node_modules
ports:
- "8005:80"
communication-service:
container_name: communication-service
build:
context: ./backend/communication-service/app/
dockerfile: Dockerfile.dev
volumes:
- ./backend/communication-service/app:/app:delegated
- /app/node_modules
ports:
- "8006:80"
question-service-db:
container_name: question-service-db
image: mongo:latest
volumes:
- question-service-db-data:/data/db
ports:
- "27017:27017"
healthcheck:
test: ["CMD-SHELL", "pgrep mongod"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
command: mongod --quiet --logpath /dev/null
# template-service:
# container_name: template-service
# build:
# context: ./backend/template-service/app/
# dockerfile: Dockerfile.dev
# volumes:
# - ./backend/template-service/app:/app:delegated
# - /app/node_modules
# ports:
# - "8009:80"
volumes:
question-service-db-data: