1+
2+ version : ' 3.8'
3+ services :
4+
5+ hd :
6+ build :
7+ dockerfile : Dockerfile.dev
8+ context : ../../../microservices/hd
9+ ports :
10+ - " null:null"
11+ volumes :
12+ - /app/node_modules
13+ - ../../../microservices/hd:/app
14+ depends_on :
15+ rabbitmq :
16+ condition : service_healthy
17+
18+ customer-service :
19+ build :
20+ dockerfile : Dockerfile.dev
21+ context : ../../../microservices/customer-service
22+ ports :
23+ - " 9000:9000"
24+ volumes :
25+ - /app/node_modules
26+ - ../../../microservices/customer-service:/app
27+ depends_on :
28+ rabbitmq :
29+ condition : service_healthy
30+
31+ product-service :
32+ build :
33+ dockerfile : Dockerfile.dev
34+ context : ../../../microservices/product-service
35+ ports :
36+ - " 9002:9002"
37+ volumes :
38+ - /app/node_modules
39+ - ../../../microservices/product-service:/app
40+ depends_on :
41+ rabbitmq :
42+ condition : service_healthy
43+
44+ rbac-service :
45+ build :
46+ dockerfile : Dockerfile.dev
47+ context : ../../../microservices/rbac-service
48+ ports :
49+ - " 9004:9004"
50+ volumes :
51+ - /app/node_modules
52+ - ../../../microservices/rbac-service:/app
53+ depends_on :
54+ rabbitmq :
55+ condition : service_healthy
56+
57+ payment-service :
58+ build :
59+ dockerfile : Dockerfile.dev
60+ context : ../../../microservices/payment-service
61+ ports :
62+ - " 9006:9006"
63+ volumes :
64+ - /app/node_modules
65+ - ../../../microservices/payment-service:/app
66+ depends_on :
67+ rabbitmq :
68+ condition : service_healthy
69+
70+ notification-service :
71+ build :
72+ dockerfile : Dockerfile.dev
73+ context : ../../../microservices/notification-service
74+ ports :
75+ - " 9007:9007"
76+ volumes :
77+ - /app/node_modules
78+ - ../../../microservices/notification-service:/app
79+ depends_on :
80+ rabbitmq :
81+ condition : service_healthy
82+
83+ email-service :
84+ build :
85+ dockerfile : Dockerfile.dev
86+ context : ../../../microservices/email-service
87+ ports :
88+ - " 9008:9008"
89+ volumes :
90+ - /app/node_modules
91+ - ../../../microservices/email-service:/app
92+ depends_on :
93+ rabbitmq :
94+ condition : service_healthy
95+
96+ cart-service :
97+ build :
98+ dockerfile : Dockerfile.dev
99+ context : ../../../microservices/cart-service
100+ ports :
101+ - " 9009:9009"
102+ volumes :
103+ - /app/node_modules
104+ - ../../../microservices/cart-service:/app
105+ depends_on :
106+ rabbitmq :
107+ condition : service_healthy
108+
109+ cart :
110+ build :
111+ dockerfile : Dockerfile.dev
112+ context : ../../../microservices/cart
113+ ports :
114+ - " 9010:9010"
115+ volumes :
116+ - /app/node_modules
117+ - ../../../microservices/cart:/app
118+ depends_on :
119+ rabbitmq :
120+ condition : service_healthy
121+
122+ user :
123+ build :
124+ dockerfile : Dockerfile.dev
125+ context : ../../../microservices/user
126+ ports :
127+ - " 9011:9011"
128+ volumes :
129+ - /app/node_modules
130+ - ../../../microservices/user:/app
131+ depends_on :
132+ rabbitmq :
133+ condition : service_healthy
134+
135+ customer :
136+ build :
137+ dockerfile : Dockerfile.dev
138+ context : ../../../microservices/customer
139+ ports :
140+ - " 9012:9012"
141+ volumes :
142+ - /app/node_modules
143+ - ../../../microservices/customer:/app
144+ depends_on :
145+ rabbitmq :
146+ condition : service_healthy
147+
148+ email :
149+ build :
150+ dockerfile : Dockerfile.dev
151+ context : ../../../microservices/email
152+ ports :
153+ - " 9013:9013"
154+ volumes :
155+ - /app/node_modules
156+ - ../../../microservices/email:/app
157+ depends_on :
158+ rabbitmq :
159+ condition : service_healthy
160+
161+ notification :
162+ build :
163+ dockerfile : Dockerfile.dev
164+ context : ../../../microservices/notification
165+ ports :
166+ - " 9014:9014"
167+ volumes :
168+ - /app/node_modules
169+ - ../../../microservices/notification:/app
170+ depends_on :
171+ rabbitmq :
172+ condition : service_healthy
173+
174+ payment :
175+ build :
176+ dockerfile : Dockerfile.dev
177+ context : ../../../microservices/payment
178+ ports :
179+ - " 9015:9015"
180+ volumes :
181+ - /app/node_modules
182+ - ../../../microservices/payment:/app
183+ depends_on :
184+ rabbitmq :
185+ condition : service_healthy
186+
187+ product :
188+ build :
189+ dockerfile : Dockerfile.dev
190+ context : ../../../microservices/product
191+ ports :
192+ - " 9016:9016"
193+ volumes :
194+ - /app/node_modules
195+ - ../../../microservices/product:/app
196+ depends_on :
197+ rabbitmq :
198+ condition : service_healthy
199+
200+ rbac :
201+ build :
202+ dockerfile : Dockerfile.dev
203+ context : ../../../microservices/rbac
204+ ports :
205+ - " 9017:9017"
206+ volumes :
207+ - /app/node_modules
208+ - ../../../microservices/rbac:/app
209+ depends_on :
210+ rabbitmq :
211+ condition : service_healthy
212+
213+ supplier :
214+ build :
215+ dockerfile : Dockerfile.dev
216+ context : ../../../microservices/supplier
217+ ports :
218+ - " 9018:9018"
219+ volumes :
220+ - /app/node_modules
221+ - ../../../microservices/supplier:/app
222+ depends_on :
223+ rabbitmq :
224+ condition : service_healthy
225+
226+ upload :
227+ build :
228+ dockerfile : Dockerfile.dev
229+ context : ../../../microservices/upload
230+ ports :
231+ - " 9019:9019"
232+ volumes :
233+ - /app/node_modules
234+ - ../../../microservices/upload:/app
235+ depends_on :
236+ rabbitmq :
237+ condition : service_healthy
238+
239+ th :
240+ build :
241+ dockerfile : Dockerfile.dev
242+ context : ../../../microservices/th
243+ ports :
244+ - " 9020:9020"
245+ volumes :
246+ - /app/node_modules
247+ - ../../../microservices/th:/app
248+ depends_on :
249+ rabbitmq :
250+ condition : service_healthy
251+
252+ kjhgf :
253+ build :
254+ dockerfile : Dockerfile.dev
255+ context : ../../../microservices/kjhgf
256+ ports :
257+ - " 9021:9021"
258+ volumes :
259+ - /app/node_modules
260+ - ../../../microservices/kjhgf:/app
261+ depends_on :
262+ rabbitmq :
263+ condition : service_healthy
264+
265+ hhgfdsdfghj :
266+ build :
267+ dockerfile : Dockerfile.dev
268+ context : ../../../microservices/hhgfdsdfghj
269+ ports :
270+ - " 9022:9022"
271+ volumes :
272+ - /app/node_modules
273+ - ../../../microservices/hhgfdsdfghj:/app
274+ depends_on :
275+ rabbitmq :
276+ condition : service_healthy
277+
278+ ghjk :
279+ build :
280+ dockerfile : Dockerfile.dev
281+ context : ../../../microservices/ghjk
282+ ports :
283+ - " 9023:9023"
284+ volumes :
285+ - /app/node_modules
286+ - ../../../microservices/ghjk:/app
287+ depends_on :
288+ rabbitmq :
289+ condition : service_healthy
290+
291+ shjksgd :
292+ build :
293+ dockerfile : Dockerfile.dev
294+ context : ../../../microservices/shjksgd
295+ ports :
296+ - " 30067:30067"
297+ volumes :
298+ - /app/node_modules
299+ - ../../../microservices/shjksgd:/app
300+ depends_on :
301+ rabbitmq :
302+ condition : service_healthy
303+
304+ nginx :
305+ depends_on :
306+ - hd
307+ - customer-service
308+ - product-service
309+ - rbac-service
310+ - payment-service
311+ - notification-service
312+ - email-service
313+ - cart-service
314+ - cart
315+ - user
316+ - customer
317+ - email
318+ - notification
319+ - payment
320+ - product
321+ - rbac
322+ - supplier
323+ - upload
324+ - th
325+ - kjhgf
326+ - hhgfdsdfghj
327+ - ghjk
328+ - shjksgd
329+ restart : always
330+ build :
331+ context : ./nginx
332+ dockerfile : Dockerfile.dev
333+ ports :
334+ - ' 4000:80'
335+ healthcheck :
336+ test : ["CMD-SHELL", "curl -f http://localhost:80/health || exit 1"]
337+ interval : 30s
338+ timeout : 10s
339+ retries : 3
340+ start_period : 40s
341+ rabbitmq :
342+ image : rabbitmq:3.13-management
343+ container_name : rabbitmq
344+ ports :
345+ - ' 5672:5672'
346+ - ' 15672:15672'
347+ healthcheck :
348+ test : ["CMD", "rabbitmq-diagnostics", "ping"]
349+ interval : 30s
350+ retries : 5
351+ mongodb :
352+ image : mongo
353+ ports :
354+ - ' 27017:27017'
355+ restart : always
356+ volumes :
357+ - type : bind
358+ source : ./data
359+ target : /data/db
360+ krakend :
361+ image : devopsfaith/krakend:2.7-watch
362+ ports :
363+ - ' 8080:8080'
364+ - ' 8090:8090'
365+ volumes :
366+ - ./krakend/:/etc/krakend/
367+ command : ['run','-d','-c','/etc/krakend/krakend.json']
0 commit comments