-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
326 lines (299 loc) · 7.98 KB
/
docker-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
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
version: "3.8"
services:
redis_db:
container_name: redis_db
command: bash -c "redis-server --appendonly yes"
image: redis
ports:
- "6379:6379"
volumes:
- ./redis-volume:/data
networks:
- insights-network
redis-commander:
image: rediscommander/redis-commander:latest
depends_on:
- redis_db
environment:
- REDIS_HOSTS=local:redis_db:6379
ports:
- 8081:8081
networks:
- insights-network
postgres_db:
image: postgres
environment:
POSTGRES_PASSWORD: "senha_trabalho_unifei"
ports:
- "15432:5432"
volumes:
- ./postgres-volume:/var/lib/postgresql/data
networks:
- insights-network
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: "lucasblazzi@hotmail.com"
PGADMIN_DEFAULT_PASSWORD: "senha_trabalho_unifei"
ports:
- "16543:80"
depends_on:
- postgres_db
networks:
- insights-network
mongo-express:
image: mongo-express
ports:
- "8082:8082"
environment:
VCAP_APP_PORT: 8082
ME_CONFIG_BASICAUTH_USERNAME: admin
ME_CONFIG_BASICAUTH_PASSWORD: admin
ME_CONFIG_MONGODB_PORT: 27017
ME_CONFIG_MONGODB_ADMINUSERNAME: admin
ME_CONFIG_MONGODB_ADMINPASSWORD: admin
ME_CONFIG_MONGODB_SERVER: mongo_db
ME_CONFIG_OPTIONS_EDITORTHEME: ambiance
depends_on:
- mongo_db
links:
- mongo_db
networks:
- insights-network
mongo_db:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
ports:
- "27017:27017"
volumes:
- ./mongo-volume:/data/db
networks:
- insights-network
client_service:
build:
context: .
dockerfile: api/client/Dockerfile
image: client
networks:
- insights-network
ports:
- 5001:5001
advisor_service:
build:
context: .
dockerfile: api/advisor/Dockerfile
image: advisor
networks:
- insights-network
ports:
- 5002:5002
assets_service:
build:
context: .
dockerfile: api/assets/Dockerfile
image: assets
networks:
- insights-network
ports:
- 5003:5003
portfolio_service:
build:
context: .
dockerfile: api/portfolio/Dockerfile
environment:
METRICS_HOST: metrics_service
METRICS_PORT: 9999
PYTHONBUFFERED: 1
image: portfolio
networks:
- insights-network
ports:
- 5004:5004
collector_service:
build:
context: .
dockerfile: api/collector/Dockerfile
image: collector
depends_on:
- mongo_db
networks:
- insights-network
ports:
- 5005:5005
collector_listener_service:
build:
context: .
dockerfile: api/collector/listener/Dockerfile
image: collector_listener
depends_on:
- publisher_service
- mongo_db
networks:
- insights-network
ports:
- 9918:9918
prices_service:
build:
context: .
dockerfile: prices/Dockerfile
image: prices
networks:
- insights-network
ports:
- 8888:8888
metrics_service:
build:
context: .
dockerfile: metrics/Dockerfile
environment:
PRICES_HOST: prices_service
image: metrics
networks:
- insights-network
ports:
- 9999:9999
publisher_service:
build:
context: .
dockerfile: publisher/Dockerfile
depends_on:
- redis_db
image: publiser
networks:
- insights-network
ports:
- 8001:8001
notifier_service:
build:
context: .
dockerfile: notifier/Dockerfile
environment:
EMAIL: notifygrupo02@gmail.com
PASSWORD: senhamuitoboa
depends_on:
- publisher_service
image: notifier
networks:
- insights-network
notifier_products_service:
build:
context: .
dockerfile: notifier_products/Dockerfile
environment:
EMAIL: notifygrupo02@gmail.com
PASSWORD: senhamuitoboa
depends_on:
- publisher_service
image: notifier_products
networks:
- insights-network
crawler_service:
build:
context: .
dockerfile: crawler/Dockerfile
environment:
METRICS_HOST: metrics_service
METRICS_PORT: 9999
ports:
- 10101:10101
depends_on:
- publisher_service
- notifier_service
- redis_db
image: crawler
networks:
- insights-network
dashboard_service:
build:
context: .
dockerfile: dashboard/Dockerfile
ports:
- 8501:8501
image: dashboard
networks:
- insights-network
# front_portfolio:
# container_name: front_portfolio
# build:
# context: .
# dockerfile: front-portfolio/Dockerfile
# volumes:
# - '.:/front-portfolio'
# - '/front-portfolio/node_modules'
# ports:
# - 3001:3001
# networks:
# - insights-network
# front_notification:
# container_name: front_notification
# build:
# context: .
# dockerfile: front-notification/Dockerfile
# depends_on:
# - publisher_service
# - notification_profile_service
# volumes:
# - '.:/front-notification'
# - '/front-notification/node_modules'
# ports:
# - 3002:3002
# networks:
# - insights-network
# notification_profile_service:
# container_name: notification_profile
# build:
# context: .
# dockerfile: notification-profile/Dockerfile
# depends_on:
# - publisher_service
# - redis_db
# ports:
# - 8000:8000
# networks:
# - insights-network
# monitor_service:
# image: monitor_service
# build:
# context: .
# dockerfile: api/monitor/Dockerfile
# ports:
# - 5006:5006
# volumes:
# - ./sys/fs/cgroup/memory/docker:/docker/memory
# - ./var/run/docker.sock:/var/run/docker.sock
# networks:
# - insights-network
# environment:
# - DOCKER_API_VERSION=1.23
prometheus:
image: prom/prometheus:v2.21.0
ports:
- 9000:9090
volumes:
- ./prometheus:/etc/prometheus
- ./prometheus/prometheus-data:/prometheus
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
networks:
- insights-network
grafana:
image: grafana/grafana:7.5.7
ports:
- 3000:3000
restart: unless-stopped
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/grafana-data:/var/lib/grafana
networks:
- insights-network
volumes:
redis-volume:
postgres-volume:
prometheus-data:
grafana-data:
front-portfolio:
mongo-volume:
networks:
insights-network:
driver: bridge