-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
181 lines (180 loc) · 3.9 KB
/
docker-compose.yaml
File metadata and controls
181 lines (180 loc) · 3.9 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
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
services:
frontend:
build: ./client
ports:
- "5173:5173"
volumes:
- ./client:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- backend
backend:
build: ./api-gateway
ports:
- "3000:3000"
volumes:
- ./api-gateway:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- authentication
- booking
- entertainment
- payment
- user
- product
- order
authentication:
build: ./authentication
ports:
- "3001:3000"
volumes:
- ./authentication:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- authentication_database
authentication_database:
image: mongo:latest
ports:
- "27017:27017"
volumes:
- "authentication-data:/data/db"
booking:
build: ./booking
ports:
- "3002:3000"
volumes:
- ./booking:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- booking_database
booking_database:
image: mongo:latest
ports:
- "27018:27017"
volumes:
- "booking-data:/data/db"
entertainment:
build: ./entertainment
ports:
- "3003:3000"
volumes:
- ./entertainment:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- entertainment_database
entertainment_database:
image: mongo:latest
ports:
- "27019:27017"
volumes:
- "entertainment-data:/data/db"
payment:
build: ./payment
ports:
- "3004:3000"
volumes:
- ./payment:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- payment_database
payment_database:
image: mongo:latest
ports:
- "27020:27017"
volumes:
- "payment-data:/data/db"
user:
build: ./user
ports:
- "3005:3000"
volumes:
- ./user:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- user_database
user_database:
image: mongo:latest
ports:
- "27021:27017"
volumes:
- "user-data:/data/db"
product:
build: ./product
ports:
- "3006:3000"
volumes:
- ./product:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- product_database
product_database:
image: mongo:latest
ports:
- "27022:27017"
volumes:
- "product-data:/data/db"
order:
build: ./order
ports:
- "3007:3000"
volumes:
- ./order:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- order_database
order_database:
image: mongo:latest
ports:
- "27023:27017"
volumes:
- "order-data:/data/db"
notification:
build: ./notification
ports:
- "3008:3000"
volumes:
- ./notification:/usr/src/app
- /usr/src/app/node_modules
environment:
- CHOKIDAR_USEPOLLING=${CHOKIDAR_USEPOLLING:-false}
depends_on:
- rabbitmq
- notification_database
notification_database:
image: mongo:latest
ports:
- "27024:27017"
volumes:
- "notification-data:/data/db"
rabbitmq:
image: rabbitmq:3-management
ports:
- "5672:5672"
- "15672:15672"
volumes:
authentication-data:
booking-data:
entertainment-data:
payment-data:
user-data:
product-data:
order-data:
notification-data: