-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (54 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (54 loc) · 1.52 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
networks:
camnet:
driver: bridge
services:
mediamtxui:
build:
context: .
dockerfile: Dockerfile
image: ${PROJECT_NAME}
container_name: ${PROJECT_NAME}
working_dir: /app/server
restart: always
command: 'tail -f /dev/null'
#command: 'node index.js'
user: root
networks:
- camnet
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
- "35729:35729"
volumes:
- /app/node_modules
- .:/app
# - /usr/bin/ffmpeg:/usr/local/bin/ffmpeg:ro
# - /usr/bin/ffprobe:/usr/local/bin/ffprobe:ro
# - /usr/lib/:/usr/lib/:ro
# - /etc/alternatives:/etc/alternatives/:ro
environment:
- DEBUG=true
- VERBOSE=2
- ENVIRONMENT=default
- NODE_ENV=development
- SERVER_PORT=${SERVER_PORT}
- RTSP_PORT=${RTSP_PORT}
- HLS_PORT=${HLS_PORT}
- WEBRTC_PORT=${WEBRTC_PORT}
- WEBRTC_UDP_PORT=${WEBRTC_UDP_PORT}
- API_PORT=${API_PORT}
- MEDIAMTX_API_URL_BASE=http://mediamtx:9997/v3
- MEDIAMTX_METRICS_URL_BASE=http://mediamtx:9996/metrics
devices:
- '/dev/video0:/dev/video0'
- '/dev/video1:/dev/video1'
- '/dev/video2:/dev/video2'
- '/dev/video3:/dev/video3'
- '/dev/video4:/dev/video4'
- '/dev/video5:/dev/video5'
# - '/dev/video6:/dev/video6'
# - '/dev/video7:/dev/video7'
# - '/dev/video8:/dev/video8'
# - '/dev/video9:/dev/video9'
- '/dev/video10:/dev/video10'
- '/dev/video11:/dev/video11'
privileged: true