update
This commit is contained in:
@@ -5,8 +5,6 @@ services:
|
||||
container_name: horror
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
DB_PATH: /data/horror.db
|
||||
healthcheck:
|
||||
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/api/health', timeout=5)"]
|
||||
interval: 30s
|
||||
@@ -20,6 +18,11 @@ services:
|
||||
- web
|
||||
volumes:
|
||||
- ./data:/data
|
||||
environment:
|
||||
DB_PATH: /data/horror.db
|
||||
MEDIAMTX_URL: http://mediamtx:8890
|
||||
depends_on:
|
||||
- mediamtx
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.horrorapp.rule=Host(`horror.marha.de`)"
|
||||
@@ -27,6 +30,23 @@ services:
|
||||
- "traefik.http.routers.horrorapp.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.services.horrorapp.loadbalancer.server.port=8000"
|
||||
|
||||
mediamtx:
|
||||
image: bluenviron/mediamtx:latest
|
||||
container_name: horror-mediamtx
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
# MediaMTX liest Konfiguration auch aus der Umgebung. Damit steht das
|
||||
# Sendepasswort nicht in der Datei, die im Git liegt.
|
||||
MTX_AUTHINTERNALUSERS_0_PASS: ${MTX_SENDEPASSWORT}
|
||||
volumes:
|
||||
- ./mediamtx/mediamtx.yml:/mediamtx.yml:ro
|
||||
# RTMP nach außen für OBS; HLS bleibt intern und läuft über die App
|
||||
ports:
|
||||
- "1935:1935"
|
||||
networks:
|
||||
- web
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user