Files
nginx-stream-server/compose.yml
jbergner 42e484c47c
Some checks failed
release-tag / release-image (push) Failing after 1m2s
staging
2025-09-21 14:58:13 +02:00

45 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: "3.9"
services:
mediamtx:
image: bluenviron/mediamtx:1.9.2
container_name: mediamtx
restart: unless-stopped
ports:
- "1935:1935" # RTMP ingest
- "8888:8888" # HLS/HTTP (optional extern, Dashboard proxyt ohnehin)
volumes:
- ./mediamtx.yml:/mediamtx.yml:ro
command: ["/mediamtx", "/mediamtx.yml"]
dashboard:
build:
context: .
dockerfile: Dockerfile
container_name: go-stream-dashboard
restart: unless-stopped
environment:
# Dashboard
- LISTEN=:8080
- BASIC_AUTH_USER=${BASIC_AUTH_USER:-}
- BASIC_AUTH_PASS=${BASIC_AUTH_PASS:-}
- STREAMS=${STREAMS:-}
# MediaMTX Endpunkte (im ComposeNetzwerk erreichbar)
- MTX_API=http://mediamtx:9997
- MTX_HLS=http://mediamtx:8888
- MTX_API_USER=${MTX_API_USER:-admin}
- MTX_API_PASS=${MTX_API_PASS:-starkes-passwort}
ports:
- "8080:8080"
depends_on:
- mediamtx
healthcheck:
test: ["CMD", "/app/dashboard", "-healthcheck"] # optionaler Schalter, siehe unten
interval: 15s
timeout: 3s
retries: 5
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp