-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (70 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
78 lines (70 loc) · 1.31 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: "3.8"
services:
mongo:
image: mongo:6
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
rabbitmq:
image: rabbitmq:3-management
restart: unless-stopped
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
ports:
- "5672:5672"
- "15672:15672"
auth:
build: ./auth
env_file:
- auth/.env
ports:
- "3000:3000"
volumes:
- ./auth:/usr/src/app
- /usr/src/app/node_modules
command: npm run dev
depends_on:
- mongo
product:
build: ./product
env_file:
- product/.env
ports:
- "3001:3001"
volumes:
- ./product:/usr/src/app
- /usr/src/app/node_modules
command: npm run dev
depends_on:
- mongo
- rabbitmq
order:
build: ./order
env_file:
- order/.env
ports:
- "3002:3002"
volumes:
- ./order:/usr/src/app
- /usr/src/app/node_modules
command: npm run dev
depends_on:
- mongo
- rabbitmq
api-gateway:
build: ./api-gateway
ports:
- "3003:3003"
volumes:
- ./api-gateway:/usr/src/app
- /usr/src/app/node_modules
command: npm run dev
depends_on:
- auth
- product
- order
volumes:
mongo-data: