-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathcompose-without-scenescape.yml
More file actions
151 lines (143 loc) · 4.4 KB
/
compose-without-scenescape.yml
File metadata and controls
151 lines (143 loc) · 4.4 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
services:
broker:
image: docker.io/library/eclipse-mosquitto:2.0.21
container_name: broker
environment:
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy},${HOST_IP}
- NO_PROXY=${no_proxy},${HOST_IP}
volumes:
- ./${SAMPLE_APP}/src/mosquitto/config:/mosquitto/config:ro
networks:
- app_network
restart: on-failure:5
dlstreamer-pipeline-server:
image: ${DLSTREAMER_PIPELINE_SERVER_IMAGE}
container_name: dlstreamer-pipeline-server
environment:
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy},${HOST_IP},mediamtx-server
- NO_PROXY=${no_proxy},${HOST_IP},mediamtx-server
- ENABLE_WEBRTC=true
- WEBRTC_SIGNALING_SERVER=http://mediamtx-server:8889
- APPEND_PIPELINE_NAME_TO_PUBLISHER_TOPIC=true
- RUN_MODE=EVA
- EMIT_SOURCE_AND_DESTINATION=true
- REST_SERVER_PORT=8080
- SERVICE_NAME=dlstreamer-pipeline-server
- MQTT_HOST=broker
- MQTT_PORT=1883
volumes:
- dlstreamer-pipeline-server-pipeline-root:/var/cache/pipeline_root:uid=1999,gid=1999
- "./${SAMPLE_APP}/src/dlstreamer-pipeline-server/models:/home/pipeline-server/models"
- "./${SAMPLE_APP}/src/dlstreamer-pipeline-server/videos:/home/pipeline-server/videos"
- "./${SAMPLE_APP}/src/dlstreamer-pipeline-server/config.json:/home/pipeline-server/config.json"
- "/run/udev:/run/udev:ro"
- "/dev:/dev"
- "/tmp:/tmp"
group_add:
- "109"
- "110"
- "992"
device_cgroup_rules:
- 'c 189:* rmw'
- 'c 209:* rmw'
- 'a 189:* rwm'
devices:
- "/dev:/dev"
networks:
- app_network
deploy:
restart_policy:
condition: on-failure
max_attempts: 5
mediamtx:
image: bluenviron/mediamtx:1.11.3
container_name: mediamtx-server
environment:
- MTX_LOGLEVEL=debug
- MTX_RTSP=no
- MTX_RTMP=no
- MTX_HLS=no
- MTX_SRT=no
- MTX_WEBRTCICESERVERS2_0_URL=turn:$HOST_IP:3478
- MTX_WEBRTCICESERVERS2_0_USERNAME=myusername
- MTX_WEBRTCICESERVERS2_0_PASSWORD=mypassword
- MTX_WEBRTCTRACKGATHERTIMEOUT=10s
- MTX_WEBRTCLOCALTCPADDRESS=:8189
networks:
- app_network
coturn:
image: coturn/coturn:4.7
container_name: coturn
ports:
- "3478:3478/udp"
networks:
- app_network
nginx:
image: nginx:1.27-alpine
container_name: nginx-reverse-proxy
ports:
- "80:80"
- "443:443"
volumes:
- "./${SAMPLE_APP}/src/nginx/nginx.conf:/etc/nginx/nginx.conf:ro"
- "./${SAMPLE_APP}/src/nginx/ssl:/etc/nginx/ssl:ro"
networks:
- app_network
depends_on:
- dlstreamer-pipeline-server
- grafana
- node-red
- mediamtx
environment:
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy},${HOST_IP}
- NO_PROXY=${no_proxy},${HOST_IP}
restart: on-failure:5
grafana:
image: grafana/grafana:11.5.4
container_name: grafana
volumes:
- "./${SAMPLE_APP}/src/grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/main.yml"
- "./${SAMPLE_APP}/src/grafana/dashboards:/var/lib/grafana/dashboards"
- "./${SAMPLE_APP}/src/grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml"
networks:
- app_network
environment:
- GF_INSTALL_PLUGINS=grafana-mqtt-datasource
- http_proxy=${http_proxy}
- https_proxy=${https_proxy}
- no_proxy=${no_proxy},${HOST_IP}
- NO_PROXY=${no_proxy},${HOST_IP}
- GF_SERVER_ROOT_URL=http://localhost/grafana/
- GF_SERVER_SERVE_FROM_SUB_PATH=true
- GF_PANELS_DISABLE_SANITIZE_HTML=true
- GF_SECURITY_ALLOW_EMBEDDING=true
node-red:
image: nodered/node-red:3.1
container_name: node-red
environment:
http_proxy: ${http_proxy}
https_proxy: ${https_proxy}
no_proxy: ${no_proxy}
volumes:
- "./${SAMPLE_APP}/src/node-red:/data"
- "./${SAMPLE_APP}/src/dlstreamer-pipeline-server/videos:/data/public/videos"
ipc: "none"
entrypoint: [ "/bin/bash", "-c", "/data/install_package.sh && /usr/src/node-red/entrypoint.sh" ]
user: root
networks:
- app_network
networks:
app_network:
driver: "bridge"
volumes:
dlstreamer-pipeline-server-pipeline-root:
driver: local
driver_opts:
type: tmpfs
device: tmpfs