Multicam (b) yaml

This commit is contained in:
chk
2026-06-06 08:17:43 +02:00
parent 7baec1ab37
commit 81bebc0158
2 changed files with 15 additions and 9 deletions

View File

@@ -47,17 +47,19 @@ services:
volumes:
- ${APP_PATH:-.}:/usr/src/app
devices:
- /dev/video0:/dev/video0
- /dev/video2:/dev/video2
- /dev/video2:/dev/video2
# Jede Kamera aus cameras.json muss hier aufgeführt sein.
# Empfehlung: statt /dev/videoN → persistente by-id-Pfade verwenden
# (ls -la /dev/v4l/by-id/ auf dem Server zeigt die Namen)
- /dev/video0:/dev/video0 # C270 (046d:0825) → cam0 in cameras.json
- /dev/video2:/dev/video2 # C270 (046d:081b) → cam1 in cameras.json
- /dev/video4:/dev/video4 # C920 HD Pro → cam2 in cameras.json
group_add:
- video
environment:
- NODE_ENV=production
- PORT=8444
# Optional: Geräte/Auflösung überschreiben (sonst Auto-Detect + Defaults)
# - DEV0=/dev/video0
# - DEV1=/dev/video2
# Kamera-Konfiguration (Gerät, Name, Auflösung) → cameras.json im APP_PATH
# Globale Fallback-Werte (gelten wenn cameras.json keinen Wert hat):
# - LIVE_SIZE=640x480
# - LIVE_FPS=30
# - HIRES_SIZE=1280x960