Files
opt/compose.mediamtx.yaml

28 lines
710 B
YAML

services:
mediamtx:
image: bluenviron/mediamtx:1.14.0-ffmpeg
container_name: mediamtx
environment:
MTX_RTSPTRANSPORTS: tcp
MTX_WEBRTCADDITIONALHOSTS: :${HOST_IP}
ports:
- "8554:8554"
- "1935:1935"
- "9888:8888"
- "9889:8889"
- "8890:8890/udp"
- "8189:8189/udp"
stdin_open: true
tty: true
volumes:
- /opt/mediamtx/mediamtx.yml:/mediamtx.yml:ro
- /mnt/yotta/radon/mediamtx:/recordings
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9997/v3/paths/list"]
interval: 30s
timeout: 10s
retries: 3
# vlc --network-caching=50 rtsp://192.168.2.200:8554/mystream