forked from CS3219-AY2425S1/cs3219-ay2425s1-project-g14
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
191 lines (178 loc) · 3.91 KB
/
compose.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
services:
peerprep:
build: peerprep
image: modembcc/peerprep:7.0.3
env_file:
- peerprep/.env
ports:
- "3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
develop:
watch:
- action: sync
path: peerprep
target: /frontend
user-service:
build: user-service
image: modembcc/user-service:6.0.0
volumes:
- /user-service/node_modules
env_file:
- user-service/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "3001:3001"
develop:
watch:
- action: rebuild
path: user-service
target: /user-service
backend:
build: backend
image: modembcc/backend:6.0.0
env_file:
- backend/.env
ports:
- "9090:9090"
develop:
watch:
- action: rebuild
path: backend
target: backend/app
# blob and mq
redis:
image: redis
container_name: redis-peerprep
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9190:6379"
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: grp14
RABBITMQ_DEFAULT_PASS: grp14
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9100:5672"
- "9101:15672"
healthcheck:
test: rabbitmq-diagnostics check_port_connectivity
interval: 30s
timeout: 30s
retries: 10
matching-service:
build: matching-service
image: modembcc/matching-service:6.0.0
env_file:
- matching-service/.env
extra_hosts:
- "host.docker.internal:host-gateway"
develop:
watch:
- action: rebuild
path: matching-service
target: matching-service/app
depends_on:
rabbitmq:
condition: service_healthy
matching-service-api:
build: matching-service-api
image: modembcc/matching-service-api:6.0.0
env_file:
- matching-service-api/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9200:9200"
develop:
watch:
- action: rebuild
path: matching-service
target: matching-service/app
depends_on:
rabbitmq:
condition: service_healthy
storage-blob-api:
build: storage-blob-api
image: modembcc/storage-blob-api:6.0.0
env_file:
- storage-blob-api/.env
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "9300:9300"
develop:
watch:
- action: rebuild
path: storage-blob-api
target: storage-blob-api/app
depends_on:
- redis
collab:
build: collab
image: modembcc/collab:7.0.3
env_file:
- collab/.env
ports:
- "4000:4000"
develop:
watch:
- action: rebuild
path: collab
target: collab/app
formatter:
build: formatter
image: modembcc/formatter:6.0.0
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- "5000:5000"
develop:
watch:
- action: sync
path: formatter
target: formatter/app
comms:
build: comms
image: modembcc/comms:7.0.0
#env_file:
#- comms/.env
ports:
- "4001:4001"
develop:
watch:
- action: sync
path: comms
target: comms/app
nginx:
build: nginx
image: modembcc/nginx:6.0.0
volumes:
- ./nginx/nginx.conf:/etc/nginx/internal.conf
ports:
- "70:70"
depends_on:
- peerprep
- backend
- user-service
- storage-blob-api
- matching-service-api
inbound-gateway:
build: inbound-gateway
image: modembcc/inbound-gateway:6.0.1
ports:
- "80:80"
volumes:
- ./inbound-gateway/nginx.conf:/etc/nginx/external.conf
depends_on:
- peerprep
- comms
# mongo:
# image: "mongo:latest"
# ports:
# - "27017:27017"