File size: 1,234 Bytes
914f53d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Local MediaMTX stack for Mentra Live testing.
#
# Primary:  RTMP on 1935/tcp (low friction — one TCP port, no ICE).
# Also:     SRT on 8890/udp (MediaMTX streamid=publish:live/stream).
# Fallback: WHIP/WHEP on 8889/tcp + 8189/udp (needs MTX_WEBRTCADDITIONALHOSTS
#           from the start script so ICE candidates reach Docker Desktop).
#
# Config is baked via Dockerfile (COPY mediamtx.yml) — no host bind mount.
# That avoids Docker Desktop + USB (D:) file-mount failures.
services:
  mediamtx:
    build: .
    image: mentra-local-mediamtx:1
    container_name: mentra-local-stream
    restart: unless-stopped
    ports:
      - "1935:1935" # Primary: RTMP publish (+ VLC can also play this URL)
      - "8554:8554" # RTSP watch (VLC Open Network)
      - "8888:8888" # HLS watch (browser)
      - "8889:8889" # WHIP / WHEP fallback (HTTP signaling + WebRTC page)
      - "8189:8189/udp" # WHIP ICE / media (most common failure if blocked)
      - "8890:8890/udp" # SRT publish / read
      - "9997:9997" # MediaMTX API
    environment:
      # Only required for WHIP ICE; harmless for RTMP/SRT-only runs.
      MTX_WEBRTCADDITIONALHOSTS: ${MTX_WEBRTCADDITIONALHOSTS:?set by start-local-stream.sh}