-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose-v2.yml
252 lines (231 loc) · 5.72 KB
/
docker-compose-v2.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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
---
version: '3.3'
services:
base:
image: bee-travels/node-base:v1
build: .
jaeger:
image: jaegertracing/all-in-one:1.7
ports:
- "6831:6831/udp"
- "6832:6832/udp"
- "16686:16686"
prometheus:
image: prom/prometheus
restart: always
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
grafana:
image: grafana/grafana
restart: always
ports:
- 3000:3000
mongo-express:
image: mongo-express
restart: always
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=admin
ports:
- 8081:8081
mongo:
container_name: mongo
ports:
- "27017:27017"
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin
restart: always
couch:
image: couchdb
restart: always
ports:
- "5984:5984"
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=admin
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=admin
destination-data-gen:
depends_on:
- couch
- postgres
- mongo
image: beetravels/data-gen-destination:13de064f6409e9aec5db244a6a9b4e65b7e11623
restart: on-failure
environment:
- PG_USER=postgres
- PG_HOST=postgres
- PG_PASSWORD=admin
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CONNECTION_URL=http://admin:admin@couch:5984
- GENERATE_DATA=false
- DATABASE=${DATABASE}
hotel-data-gen:
depends_on:
- couch
- postgres
- mongo
image: beetravels/data-gen-hotel:13de064f6409e9aec5db244a6a9b4e65b7e11623
restart: on-failure
environment:
- PG_USER=postgres
- PG_HOST=postgres
- PG_PASSWORD=admin
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CONNECTION_URL=http://admin:admin@couch:5984
- GENERATE_DATA=false
- DATABASE=${DATABASE}
cars-data-gen:
depends_on:
- couch
- postgres
- mongo
image: beetravels/data-gen-carrental:13de064f6409e9aec5db244a6a9b4e65b7e11623
restart: on-failure
environment:
- PG_USER=postgres
- PG_HOST=postgres
- PG_PASSWORD=admin
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CONNECTION_URL=http://admin:admin@couch:5984
- GENERATE_DATA=false
- DATABASE=${DATABASE}
flights-data-gen:
depends_on:
- couch
- postgres
- mongo
image: beetravels/data-gen-airports:13de064f6409e9aec5db244a6a9b4e65b7e11623
restart: on-failure
environment:
- PG_USER=postgres
- PG_HOST=postgres
- PG_PASSWORD=admin
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CONNECTION_URL=http://admin:admin@couch:5984
- GENERATE_DATA=false
- DATABASE=${DATABASE}
destination:
build: services/destination-v2
ports:
- "9001:9001"
depends_on:
- base
environment:
- DATABASE=${DATABASE}
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CLOUDANT_CONNECTION_URL=http://admin:admin@couch:5984
- PG_HOST=postgres
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=admin
hotel:
build: services/hotel-v2
ports:
- "9101:9101"
depends_on:
- base
environment:
- LOG_LEVEL=${LOG_LEVEL}
- DATABASE=${DATABASE}
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CLOUDANT_CONNECTION_URL=http://admin:admin@couch:5984
- PG_HOST=postgres
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=admin
car-rental:
build: services/car-rental-v2
ports:
- "9102:9102"
depends_on:
- base
- cars-data-gen
environment:
- LOG_LEVEL=${LOG_LEVEL}
- DATABASE=${DATABASE}
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CLOUDANT_CONNECTION_URL=http://admin:admin@couch:5984
- PG_HOST=postgres
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=admin
flights:
build: services/flights-v2
ports:
- "9103:9103"
depends_on:
- base
environment:
- LOG_LEVEL=${LOG_LEVEL}
- DATABASE=${DATABASE}
- MONGO_CONNECTION_URL=mongodb://admin:admin@mongo:27017
- COUCH_CLOUDANT_CONNECTION_URL=http://admin:admin@couch:5984
- PG_HOST=postgres
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=admin
currency-exchange:
build: services/currency-exchange
ports:
- "9201:9201"
depends_on:
- base
email-service:
build: services/email-v2
ports:
- "9301:9301"
depends_on:
- base
environment:
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
payment:
build: services/payment-v2
ports:
- "9403:9403"
depends_on:
- base
checkout:
build: services/checkout-v2
ports:
- "9402:9402"
depends_on:
- base
- postgres
- payment
- email-service
environment:
- DATABASE=${DATABASE}
- PG_HOST=postgres
- PG_PORT=5432
- PG_USER=postgres
- PG_PASSWORD=admin
- PAYMENT_URL=http://payment:9403
- EMAIL_URL=http://email-service:9301
ui:
build: services/ui
ports:
- "9000:9000"
depends_on:
- base
- destination
- hotel
- car-rental
- currency-exchange
- flights
environment:
- NODE_ENV=production
- DESTINATION_URL=http://destination:9001
- HOTEL_URL=http://hotel:9101
- CAR_URL=http://car-rental:9102
- CURRENCY_EXCHANGE_URL=http://currency-exchange:9201
- FLIGHTS_URL=http://flights:9103