-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
603 lines (589 loc) · 21.5 KB
/
docker-compose.yml
File metadata and controls
603 lines (589 loc) · 21.5 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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
#
# Apache v2 license
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
services:
ia-telegraf:
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
container_name: ia-telegraf
hostname: ia-telegraf
image: telegraf:1.37.2
restart: unless-stopped
depends_on:
- ia-influxdb
security_opt:
- no-new-privileges
read_only: true
healthcheck:
test: ["CMD-SHELL", "exit", "0"]
interval: 5m
environment:
no_proxy: "ia-influxdb,ia-mqtt-broker,ia-opcua-server,ia-time-series-analytics-microservice,${no_proxy}"
NO_PROXY: "ia-influxdb,ia-mqtt-broker,ia-opcua-server,ia-time-series-analytics-microservice,${no_proxy}"
MQTT_BROKER_HOST: "ia-mqtt-broker"
INFLUX_SERVER: "ia-influxdb"
INFLUXDB_PORT: 8086
INFLUXDB_USERNAME: ${INFLUXDB_USERNAME}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
INFLUXDB_DBNAME: datain
TELEGRAF_CONFIG_PATH: /etc/telegraf/Telegraf.conf
OPCUA_SERVER: opc.tcp://ia-opcua-server:4840/freeopcua/server/
LOG_LEVEL: ${LOG_LEVEL}
TELEGRAF_INPUT_PLUGIN: ${TELEGRAF_INPUT_PLUGIN:-mqtt_consumer}
# The Telegraf metric_batch_size specifies the number of metrics or data points
# that are grouped together and sent in a single batch to the InfluxDB.
TELEGRAF_METRIC_BATCH_SIZE: 100
TS_MS_SERVER_URL: http://ia-time-series-analytics-microservice:${KAPACITOR_PORT}
entrypoint: ["/bin/sh", "-c", "/entrypoint.sh"]
networks:
- timeseries_network
volumes:
- ./configs/telegraf/entrypoint.sh:/entrypoint.sh
- "./configs/telegraf/config/:/etc/telegraf"
ia-influxdb:
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
image: influxdb:1.12.2
container_name: ia-influxdb
hostname: ia-influxdb
restart: unless-stopped
read_only: true
security_opt:
- no-new-privileges
networks:
- timeseries_network
healthcheck:
test: ["CMD-SHELL", "exit", "0"]
interval: 5m
environment:
INFLUXDB_DB: datain
INFLUXDB_ADMIN_USER: admin
INFLUXDB_ADMIN_PASSWORD: ${INFLUXDB_PASSWORD}
INFLUXDB_USER : ${INFLUXDB_USERNAME}
INFLUXDB_USER_PASSWORD: ${INFLUXDB_PASSWORD}
# The InfluxDB retention policy durations can be configured using a combination
# of time units such as hours(h), minutes(m), and seconds(s), eg., 1h0m0s for 1 hour.
RETENTION_DURATION: 1h0m0s
no_proxy: "ia-time-series-analytics-microservice,${no_proxy}"
NO_PROXY: "ia-time-series-analytics-microservice,${no_proxy}"
INFLUXDB_CONFIG_PATH: "/etc/influxdb/influxdb.conf"
INFLUXDB_LOGGING_LEVEL: ${LOG_LEVEL}
INFLUXDB_TLS_CIPHERS: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
volumes:
# Mount for influxdb data directory and configuration
- vol_influxdb_conf:/var/lib/influxdb:rw
- ./configs/influxdb/config:/etc/influxdb
- ./configs/influxdb/init-influxdb.sh:/docker-entrypoint-initdb.d/init-influxdb.sh
ia-time-series-analytics-microservice:
container_name: ia-time-series-analytics-microservice
hostname: ia-time-series-analytics-microservice
image: ${DOCKER_REGISTRY}${TIME_SERIES_ANALYTICS_IMAGE}:${IMAGE_SUFFIX:-latest}${WEEKLY_BUILD_DATE:+-${WEEKLY_BUILD_DATE}}${WEEKLY_BUILD_DATE:+-weekly}
restart: unless-stopped
depends_on:
- ia-influxdb
- ia-mqtt-broker
security_opt:
- no-new-privileges
read_only: true
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9092/kapacitor/v1/ping || exit 1"]
interval: 10s
timeout: 5s
retries: 20
environment:
no_proxy: "ia-time-series-analytics-microservice,ia-influxdb,ia-mqtt-broker,ia-opcua-server,localhost,model-registry,${no_proxy}"
NO_PROXY: "ia-time-series-analytics-microservice,ia-influxdb,ia-mqtt-broker,ia-opcua-server,localhost,model-registry,${no_proxy}"
KAPACITOR_PORT: ${KAPACITOR_PORT}
INFLUX_SERVER: "ia-influxdb"
KAPACITOR_INFLUXDB_0_USERNAME: ${INFLUXDB_USERNAME}
KAPACITOR_INFLUXDB_0_PASSWORD: ${INFLUXDB_PASSWORD}
PROFILING_MODE: "false"
KAPACITOR_URL: http://ia-time-series-analytics-microservice:$KAPACITOR_PORT/
KAPACITOR_UNSAFE_SSL: "true"
KAPACITOR_INFLUXDB_0_URLS_0: http://ia-influxdb:8086/
INFLUXDB_PORT: 8086
KAPACITOR_LOGGING_LEVEL: ${LOG_LEVEL}
INFLUXDB_DBNAME: datain
PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION: python
SSL_CERT_FILE: /run/secrets/ca_certificate.pem
MODEL_REGISTRY_URL: http://model-registry:8111
REST_API_ROOT_PATH: "/ts-api"
networks:
- timeseries_network
volumes:
- "vol_temp_time_series_analytics_microservice:/tmp/"
- ./configs/time-series-analytics-microservice/udfs/:/tmp/weld_anomaly_detector/udfs/:ro
- ./configs/time-series-analytics-microservice/tick_scripts/:/tmp/weld_anomaly_detector/tick_scripts/:ro
- ./configs/time-series-analytics-microservice/config.json:/app/config.json:ro
- ./configs/time-series-analytics-microservice/models/:/tmp/weld_anomaly_detector/models/:ro
- ${DRI_MOUNT_PATH:-/dev/null}:/dev/dri:ro
- "/run/udev:/run/udev:ro"
group_add:
# render group ID for ubuntu 20.04 host OS
- "109"
# render group ID for ubuntu 22.04 host OS
- "110"
# render group ID for ubuntu 24.04 host OS
- "992"
devices:
# Following devices under /dev filesystem will be needed based on usecase
# dri - GPU
- "${DRI_MOUNT_PATH:-/dev/null}:/dev/dri"
ia-grafana:
image: grafana/grafana-oss:12.3.3-ubuntu
container_name: ia-grafana
hostname: ia-grafana
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
restart: unless-stopped
read_only: true
depends_on:
- ia-influxdb
security_opt:
- no-new-privileges
healthcheck:
test: ["CMD-SHELL", "exit", "0"]
interval: 5m
environment:
no_proxy: "ia-influxdb,${no_proxy}"
NO_PROXY: "ia-influxdb,${no_proxy}"
INFLUX_SERVER: "ia-influxdb"
GRAFANA_SERVER: '0.0.0.0'
INFLUXDB_USERNAME: ${INFLUXDB_USERNAME}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
INFLUXDB_DB: datain
GF_SECURITY_ADMIN_USER: ${VISUALIZER_GRAFANA_USER}
GF_SECURITY_ADMIN_PASSWORD: ${VISUALIZER_GRAFANA_PASSWORD}
GF_PROVISIONING_ENABLE: "true"
GF_PROVISIONING_DASHBOARDS: /etc/grafana/provisioning/dashboards
GF_SERVER_PROTOCOL: http
GF_LOG_LEVEL: ${LOG_LEVEL}
GF_SERVER_SERVE_FROM_SUB_PATH: true
GF_PANELS_DISABLE_SANITIZE_HTML: true
GF_SECURITY_ALLOW_EMBEDDING: true
GF_AUTH_LOGIN_MAXIMUM_INACTIVE_LIFETIME_DURATION: ${VISUALIZER_GRAFANA_INACTIVE_TIMEOUT}
GF_AUTH_LOGIN_MAXIMUM_LIFETIME_DURATION: ${VISUALIZER_GRAFANA_INACTIVE_TIMEOUT}
GF_SECURITY_LOGIN_REMEMBER_DAYS: "1"
networks:
- timeseries_network
volumes:
- "vol_temp_grafana:/tmp"
- vol_grafana_data:/var/lib/grafana
- ./configs/grafana/:/etc/grafana/provisioning/dashboards
- ./configs/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
ia-mqtt-broker:
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
container_name: ia-mqtt-broker
hostname: ia-mqtt-broker
read_only: true
image: eclipse-mosquitto:2.0.22
restart: unless-stopped
depends_on:
- ia-influxdb
security_opt:
- no-new-privileges
healthcheck:
test: ["CMD-SHELL", "exit", "0"]
interval: 5m
networks:
- timeseries_network
volumes:
- ./configs/mqtt-broker/mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
ia-weld-data-simulator:
build:
context: $PWD/weld-data-simulator
dockerfile: $PWD/weld-data-simulator/Dockerfile
args:
TIMESERIES_USER_NAME: ${TIMESERIES_USER_NAME}
TIMESERIES_UID: ${TIMESERIES_UID}
depends_on:
- ia-mqtt-broker
- mediamtx
container_name: ia-weld-data-simulator
hostname: ia-weld-data-simulator
read_only: true
image: ${DOCKER_REGISTRY}${WELD_SIMULATOR_IMAGE}:${IMAGE_SUFFIX:-latest}${WEEKLY_BUILD_DATE:+-${WEEKLY_BUILD_DATE}}${WEEKLY_BUILD_DATE:+-weekly}
restart: unless-stopped
security_opt:
- no-new-privileges
healthcheck:
test: ["CMD-SHELL", "exit", "0"]
interval: 5m
environment:
MQTT_BROKER: ia-mqtt-broker
MEDIAMTX_SERVER: mediamtx
MEDIAMTX_PORT: 8554
TS_TOPIC: "${TS_TOPIC}"
RTSP_STREAM_NAME: live.stream
no_proxy: "ia-mqtt-broker,ia-time-series-analytics-microservice,mediamtx,${no_proxy},dlstreamer-pipeline-server"
NO_PROXY: "ia-mqtt-broker,ia-time-series-analytics-microservice,mediamtx,${no_proxy},dlstreamer-pipeline-server"
TS_MS_SERVER: "ia-time-series-analytics-microservice"
TS_MS_PORT: ${KAPACITOR_PORT}
DLSPS_SERVER_HOST: dlstreamer-pipeline-server
DLSPS_SERVER_PORT: 8080
CONTINUOUS_SIMULATOR_INGESTION: ${CONTINUOUS_SIMULATOR_INGESTION}
SIMULATION_TARGET_FPS: ${SIMULATION_TARGET_FPS}
LOG_LEVEL: ${LOG_LEVEL}
volumes:
- ./weld-data-simulator/simulation-data:/simulation-data
- ./weld-data-simulator/publisher.py:/publisher.py:ro
networks:
- timeseries_network
nginx:
image: nginx:1.29.1-bookworm-perl
container_name: nginx_proxy
read_only: true
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
security_opt:
- no-new-privileges
restart: unless-stopped
command: >
/bin/sh -c "/usr/local/bin/nginx-cert-gen.sh && exec nginx -g 'daemon off;'"
environment:
no_proxy: "ia-grafana,ia-time-series-analytics-microservice,ia-mqtt-broker,coturn,mediamtx,${no_proxy},${HOST_IP},seaweedfs-filer"
NO_PROXY: "ia-grafana,ia-time-series-analytics-microservice,ia-mqtt-broker,coturn,mediamtx,${no_proxy},${HOST_IP},seaweedfs-filer"
MEDIAMTX_SERVER: mediamtx
WHIP_SERVER_PORT: ${WHIP_SERVER_PORT}
ports:
- "${GRAFANA_PORT}:15443" # HTTPS for Grafana and TS MS Rest API
- "1883:1883" # MQTT TCP Proxy
volumes:
- ./configs/nginx/nginx.conf:/tmp/default.conf.template:ro
- ./configs/nginx/nginx-cert-gen.sh:/usr/local/bin/nginx-cert-gen.sh:ro
- vol_nginx_tmpfs:/opt/nginx/certs:rw
- vol_nginx_tmpfs:/var/cache/nginx:rw
- vol_nginx_tmpfs:/run:rw
- vol_nginx_tmpfs:/etc/nginx/:rw
networks:
- timeseries_network
depends_on:
- ia-grafana
- ia-time-series-analytics-microservice
- ia-mqtt-broker
- mediamtx
- coturn
- seaweedfs-filer
ia-fusion-analytics:
build:
context: $PWD/fusion-analytics
dockerfile: $PWD/fusion-analytics/Dockerfile
args:
TIMESERIES_USER_NAME: ${TIMESERIES_USER_NAME}
TIMESERIES_UID: ${TIMESERIES_UID}
container_name: ia-fusion-analytics
image: ${DOCKER_REGISTRY}${FUSION_MODULE_IMAGE}:${IMAGE_SUFFIX:-latest}${WEEKLY_BUILD_DATE:+-${WEEKLY_BUILD_DATE}}${WEEKLY_BUILD_DATE:+-weekly}
read_only: true
restart: unless-stopped
security_opt:
- no-new-privileges
environment:
# MQTT Configuration
MQTT_BROKER: ia-mqtt-broker
MQTT_PORT: 1883
no_proxy: "ia-mqtt-broker,ia-influxdb,${no_proxy}"
NO_PROXY: "ia-mqtt-broker,ia-influxdb,${no_proxy}"
# Topic Configuration
VISION_TOPIC: vision_weld_defect_classification
TS_TOPIC: ts_weld_anomaly_detection
FUSION_TOPIC: fusion/anomaly_detection_results
# Performance Configuration
BUFFER_SIZE: 100
TOLERANCE_NS: ${TOLERANCE_NS}
INFLUXDB_HOST: ia-influxdb
INFLUXDB_PORT: 8086
INFLUXDB_DB: datain
INFLUXDB_USERNAME: ${INFLUXDB_USERNAME}
INFLUXDB_PASSWORD: ${INFLUXDB_PASSWORD}
PYTHONUNBUFFERED: 1
FUSION_MODE: ${FUSION_MODE}
LOG_LEVEL: ${LOG_LEVEL}
depends_on:
- ia-mqtt-broker
networks:
- timeseries_network
dlstreamer-pipeline-server:
image: ${DOCKER_REGISTRY}${DLSTREAMER_PIPELINE_SERVER_IMAGE}
container_name: dlstreamer-pipeline-server
hostname: dlstreamer-pipeline-server
read_only: true
networks:
- timeseries_network
restart: unless-stopped
security_opt:
- no-new-privileges
depends_on:
ia-weld-data-simulator:
condition: service_started
ia-time-series-analytics-microservice:
condition: service_healthy
seaweedfs-s3:
condition: service_started
environment:
AppName: "DLStreamerPipelineServer"
ENABLE_WEBRTC: true
WEBRTC_SIGNALING_SERVER: http://mediamtx:8889
ENABLE_RTSP: true
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy},${HOST_IP},${RTSP_CAMERA_IP},otel-collector,mediamtx,model_registry,${S3_STORAGE_HOST},ia-mqtt-broker
NO_PROXY: ${no_proxy},${HOST_IP},${RTSP_CAMERA_IP},otel-collector,mediamtx,model_registry,${S3_STORAGE_HOST},ia-mqtt-broker
GST_DEBUG: "1"
REST_SERVER_PORT: ${REST_SERVER_PORT}
S3_STORAGE_HOST: ${S3_STORAGE_HOST}
S3_STORAGE_PORT: ${S3_STORAGE_PORT}
S3_STORAGE_USER: ${S3_STORAGE_USERNAME}
S3_STORAGE_PASS: ${S3_STORAGE_PASSWORD}
SERVICE_NAME: "dlstreamer-pipeline-server"
ENABLE_OPEN_TELEMETRY: true
OTEL_COLLECTOR_HOST: ${OTEL_COLLECTOR_HOST}
OTEL_COLLECTOR_PORT: ${OTEL_COLLECTOR_PORT}
OTEL_EXPORT_INTERVAL_MILLIS: ${OTEL_EXPORT_INTERVAL_MILLIS}
OPCUA_SERVER_IP: ${OPCUA_SERVER_IP:-"ia-opcua-server"}
OPCUA_SERVER_PORT: ${OPCUA_SERVER_PORT:-4840}
OPCUA_SERVER_USERNAME: ${OPCUA_SERVER_USERNAME:-""}
OPCUA_SERVER_PASSWORD: ${OPCUA_SERVER_PASSWORD:-""}
# Model Registry Microservice
MR_URL: ${MR_URL:-""}
MR_SAVED_MODELS_DIR: ${MR_SAVED_MODELS_DIR:-""}
MR_REQUEST_TIMEOUT: ${MR_REQUEST_TIMEOUT:-""}
MR_VERIFY_CERT: ${MR_VERIFY_CERT:-""}
MQTT_HOST: ia-mqtt-broker
MQTT_PORT: 1883
LOG_LEVEL: ${LOG_LEVEL}
volumes:
- vol_pipeline_root:/var/cache/pipeline_root:uid=1999,gid=1999
- /var/tmp:/var/tmp
- ./configs/dlstreamer-pipeline-server/models:/home/pipeline-server/resources/models
- ./configs/dlstreamer-pipeline-server/config.json:/home/pipeline-server/config.json
# Following devices under /dev filesystem will be needed based on usecase
# dri - GPU
# USB camera devices
# Selective mount can be done for deployment as mounting whole /dev is not recommended
- "/dev:/dev"
- "/tmp:/tmp"
# volume mount the udev database with read-only permission,so the USB3 Vision interfaces can be enumerated correctly in the container
- "/run/udev:/run/udev:ro"
# Volume mount the directory in host system where the images are stored onto the container directory system.
# - <absolute or relative path to the images directory>:/app/img_dir
#- ../DLStreamerPipelineServer/udfs:/home/pipeline-server/udfs/
group_add:
# render group ID for ubuntu 20.04 host OS
- "109"
# render group ID for ubuntu 22.04 host OS
- "110"
# render group ID for ubuntu 24.04 host OS
- "992"
device_cgroup_rules:
# Default run - device-cgroup-rule='c 189:* rmw'
# Selective rules can be applied for deployment
- 'c 189:* rmw'
- 'c 209:* rmw'
- 'a 189:* rwm'
devices:
# Following devices under /dev filesystem will be needed based on usecase
# dri - GPU
# USB camera devices
# Selective mount can be done for deployment as mounting whole /dev is not recommended
- "/dev:/dev"
mediamtx:
image: bluenviron/mediamtx:1.16.2
container_name: mediamtx
restart: unless-stopped
read_only: true
security_opt:
- no-new-privileges
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
environment:
- MTX_LOGLEVEL=info
- MTX_RTSP=yes
- MTX_RTMP=no
- MTX_HLS=no
- NO_PROXY=mediamtx,coturn,${no_proxy},${HOST_IP}
- no_proxy=mediamtx,coturn,${no_proxy},${HOST_IP}
# Path settings for cam1
- MTX_AUTHINTERNALUSERS_PUBLISHER_USER=publisher
- MTX_AUTHINTERNALUSERS_PUBLISHER_PASS=pubpass
- MTX_AUTHINTERNALUSERS_PUBLISHER_PERMISSIONS_0=publish
- MTX_AUTHINTERNALUSERS_PUBLISHER_PATHS_0=cam1
- MTX_AUTHINTERNALUSERS_VIEWER_USER=viewer
- MTX_AUTHINTERNALUSERS_VIEWER_PASS=viewpass
- MTX_AUTHINTERNALUSERS_VIEWER_PERMISSIONS_0=read
- MTX_AUTHINTERNALUSERS_VIEWER_PATHS_0=cam1
- MTX_WEBRTCTRACKGATHERTIMEOUT=20s
- MTX_WEBRTC=yes
- MTX_WEBRTCICESERVERS2_0_URL=turn:${HOST_IP}:${COTURN_UDP_PORT}
- MTX_WEBRTCICESERVERS2_0_USERNAME=${MTX_WEBRTCICESERVERS2_0_USERNAME}
- MTX_WEBRTCICESERVERS2_0_PASSWORD=${MTX_WEBRTCICESERVERS2_0_PASSWORD}
networks:
- timeseries_network
seaweedfs-master:
image: ${SEAWEEDFS_IMAGE}
hostname: seaweedfs-master
container_name: seaweedfs-master
read_only: true
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
security_opt:
- no-new-privileges
networks:
- timeseries_network
volumes:
- seaweed_master_data:/data
environment:
- NO_PROXY=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
- no_proxy=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
command: master -ip=seaweedfs-master -ip.bind=0.0.0.0
seaweedfs-volume:
image: ${SEAWEEDFS_IMAGE}
hostname: seaweedfs-volume
container_name: seaweedfs-volume
read_only: true
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
security_opt:
- no-new-privileges
networks:
- timeseries_network
volumes:
- seaweed_volume_data:/data
environment:
- NO_PROXY=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
- no_proxy=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
command: volume -mserver=seaweedfs-master:9333 -ip.bind=0.0.0.0 -port=8080
depends_on:
- seaweedfs-master
seaweedfs-filer:
image: ${SEAWEEDFS_IMAGE}
hostname: seaweedfs-filer
container_name: seaweedfs-filer
read_only: true
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
security_opt:
- no-new-privileges
networks:
- timeseries_network
volumes:
- seaweed_filer_data:/data
- "vol_temp_seaweed_filer:/tmp"
environment:
- NO_PROXY=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
- no_proxy=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
command: filer -master=seaweedfs-master:9333 -ip.bind=0.0.0.0
depends_on:
- seaweedfs-master
- seaweedfs-volume
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8888/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
seaweedfs-s3:
image: ${SEAWEEDFS_IMAGE}
hostname: seaweedfs-s3
container_name: seaweedfs-s3
read_only: true
user: "${TIMESERIES_UID}:${TIMESERIES_UID}"
security_opt:
- no-new-privileges
networks:
- timeseries_network
environment:
- NO_PROXY=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
- no_proxy=localhost,127.0.0.1,seaweedfs-master,seaweedfs-volume,seaweedfs-filer,seaweedfs-s3,172.18.0.0/16
# Comma-separated list of default buckets to create
- DEFAULT_S3_BUCKETS=dlstreamer-pipeline-results
# S3 credentials from .env file
- S3_STORAGE_USER=${S3_STORAGE_USERNAME}
- S3_STORAGE_PASS=${S3_STORAGE_PASSWORD}
entrypoint: ["/s3-init-buckets.sh"]
command: s3 -filer=seaweedfs-filer:8888 -ip.bind=0.0.0.0 -config=/tmp/s3_config.json
depends_on:
seaweedfs-filer:
condition: service_healthy
seaweedfs-master:
condition: service_started
seaweedfs-volume:
condition: service_started
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8333/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
- ./configs/seaweedfs-s3/seaweedfs_s3_config.json.template:/etc/seaweedfs/s3_config.json.template:ro
- ./configs/seaweedfs-s3/s3-init-buckets.sh:/s3-init-buckets.sh:ro
- "vol_temp_seaweed_s3:/tmp"
coturn:
image: coturn/coturn:4.8.0
container_name: coturn
read_only: true
security_opt:
- no-new-privileges
ports:
- "${COTURN_UDP_PORT}:3478"
- "${COTURN_UDP_PORT}:3478/udp"
command: ["-v"] # Verbose mode for logging
networks:
- timeseries_network
networks:
timeseries_network:
driver: bridge
volumes:
vol_influxdb_conf:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_temp_time_series_analytics_microservice:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_temp_grafana:
name: "visualization_grafana_vol"
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_grafana_data:
name: "visualization_var_grafana_vol"
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_pipeline_root:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_nginx_tmpfs:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
seaweed_master_data:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
seaweed_volume_data:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
seaweed_filer_data:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_temp_seaweed_filer:
name: "seaweed_filer_vol"
driver: local
driver_opts:
type: tmpfs
device: tmpfs
vol_temp_seaweed_s3:
name: "seaweed_s3_vol"
driver: local
driver_opts:
type: tmpfs
device: tmpfs