-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
330 lines (310 loc) · 7.72 KB
/
docker-compose.yml
File metadata and controls
330 lines (310 loc) · 7.72 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
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
327
328
329
330
services:
nginx-rtmp:
image: tiangolo/nginx-rtmp:latest
container_name: nginx-rtmp
ports:
- "1935:1935"
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./streams:/tmp/hls
restart: unless-stopped
networks:
- streaming-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/health"]
interval: 10s
timeout: 5s
retries: 3
alertmanager:
image: prom/alertmanager:latest
container_name: alertmanager
volumes:
- ./master/monitoring/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml:ro
command:
- "--config.file=/etc/alertmanager/alertmanager.yml"
ports:
- "9093:9093"
restart: unless-stopped
networks:
- streaming-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9093/-/healthy"]
interval: 10s
timeout: 5s
retries: 3
nginx-exporter:
image: mauricioabreu/nginx-rtmp-exporter
container_name: nginx-exporter
environment:
- NGINX_RTMP_URL=http://nginx-rtmp/stat
ports:
- "9728:9728"
depends_on:
nginx-rtmp:
condition: service_healthy
restart: unless-stopped
networks:
- streaming-net
victoriametrics:
image: victoriametrics/victoria-metrics:latest
container_name: victoriametrics
volumes:
- ./master/monitoring/victoriametrics.yml:/etc/victoriametrics/scrape.yml:ro
- victoriametrics-data:/storage
command:
- "--storageDataPath=/storage"
- "--retentionPeriod=30d"
- "--httpListenAddr=:8428"
- "--promscrape.config=/etc/victoriametrics/scrape.yml"
ports:
- "8428:8428"
restart: unless-stopped
networks:
- streaming-net
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:8428/health"]
interval: 10s
timeout: 5s
retries: 3
grafana:
image: grafana/grafana:latest
container_name: grafana
user: root
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
- GF_INSTALL_PLUGINS=grafana-clock-panel
volumes:
- grafana-data:/var/lib/grafana
- ./master/monitoring/grafana/provisioning:/etc/grafana/provisioning:ro
depends_on:
- victoriametrics
restart: unless-stopped
networks:
- streaming-net
cpu-exporter-go:
build:
context: .
dockerfile: worker/exporters/cpu_exporter/Dockerfile
container_name: cpu-exporter-go
privileged: true
volumes:
- /sys/class/powercap:/sys/class/powercap:ro
- /sys/devices:/sys/devices:ro
ports:
- "9510:9500"
restart: unless-stopped
networks:
- streaming-net
environment:
- CPU_EXPORTER_PORT=9500
docker-stats-exporter:
build:
context: .
dockerfile: worker/exporters/docker_stats_go/Dockerfile
container_name: docker-stats-exporter
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /proc:/host/proc:ro
ports:
- "9501:9501"
restart: unless-stopped
environment:
- DOCKER_STATS_PORT=9501
networks:
- streaming-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9501/health"]
interval: 30s
timeout: 5s
retries: 3
cadvisor:
image: gcr.io/cadvisor/cadvisor:latest
container_name: cadvisor
privileged: true
volumes:
- /:/rootfs:ro
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /dev/disk/:/dev/disk:ro
ports:
- "8081:8080"
restart: unless-stopped
networks:
- streaming-net
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
pid: host
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.sysfs=/host/sys"
- "--path.rootfs=/rootfs"
ports:
- "9100:9100"
restart: unless-stopped
networks:
- streaming-net
dcgm-exporter:
image: nvcr.io/nvidia/k8s/dcgm-exporter:4.4.1-4.6.0-ubuntu22.04
container_name: dcgm-exporter
profiles:
- nvidia
runtime: nvidia
cap_add:
- SYS_ADMIN
ports:
- "9400:9400"
restart: unless-stopped
networks:
- streaming-net
environment:
- DCGM_EXPORTER_LISTEN=:9400
gpu-exporter-go:
build:
context: .
dockerfile: worker/exporters/gpu_exporter/Dockerfile
container_name: gpu-exporter-go
profiles:
- nvidia
runtime: nvidia
cap_add:
- SYS_ADMIN
ports:
- "9511:9505"
restart: unless-stopped
networks:
- streaming-net
environment:
- GPU_EXPORTER_PORT=9505
results-exporter:
build:
context: .
dockerfile: master/exporters/results_go/Dockerfile
container_name: results-exporter
volumes:
- ./test_results:/results
ports:
- "9502:9502"
restart: unless-stopped
networks:
- streaming-net
environment:
- RESULTS_EXPORTER_PORT=9502
- RESULTS_DIR=/results
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9502/health"]
interval: 30s
timeout: 5s
retries: 3
qoe-exporter:
build:
context: .
dockerfile: master/exporters/qoe_go/Dockerfile
container_name: qoe-exporter
volumes:
- ./test_results:/results:ro
ports:
- "9503:9503"
restart: unless-stopped
networks:
- streaming-net
environment:
- QOE_EXPORTER_PORT=9503
- RESULTS_DIR=/results
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9503/health"]
interval: 30s
timeout: 5s
retries: 3
cost-exporter:
build:
context: .
dockerfile: master/exporters/cost_go/Dockerfile
container_name: cost-exporter
volumes:
- ./test_results:/results:ro
ports:
- "9504:9504"
restart: unless-stopped
networks:
- streaming-net
environment:
- RESULTS_DIR=/results
- ENERGY_COST=0.0
- CPU_COST=0.50
- CURRENCY=USD
- REGION=us-east-1
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9504/health"]
interval: 30s
timeout: 5s
retries: 3
ml-predictions-exporter:
build:
context: .
dockerfile: master/exporters/ml_predictions/Dockerfile
container_name: ml-predictions-exporter
volumes:
- ./ml_models:/app/ml_models:ro
ports:
- "9505:9505"
restart: unless-stopped
networks:
- streaming-net
environment:
- ML_EXPORTER_PORT=9505
- MODEL_PATH=/app/ml_models/model.json
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9505/health"]
interval: 30s
timeout: 5s
retries: 3
exporter-health-checker:
build:
context: .
dockerfile: master/exporters/health_checker_go/Dockerfile
container_name: exporter-health-checker
ports:
- "9600:9600"
restart: unless-stopped
networks:
- streaming-net
environment:
- HEALTH_CHECK_PORT=9600
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9600/health"]
interval: 30s
timeout: 5s
retries: 3
ffmpeg-exporter:
build:
context: .
dockerfile: worker/exporters/ffmpeg_exporter/Dockerfile
container_name: ffmpeg-exporter
ports:
- "9506:9506"
restart: unless-stopped
networks:
- streaming-net
environment:
- FFMPEG_EXPORTER_PORT=9506
healthcheck:
test: ["CMD", "wget", "-q", "-O", "-", "http://localhost:9506/health"]
interval: 30s
timeout: 5s
retries: 3
networks:
streaming-net:
driver: bridge
volumes:
victoriametrics-data:
grafana-data: