deltacast-sdi-recorder/docker-compose.truenas.yml

48 lines
1.1 KiB
YAML
Raw Permalink Normal View History

version: '3.8'
# TrueNAS (Wooglin) override — no physical Deltacast card.
# The backend auto-detects missing /dev/deltacast{n} and falls back to
# a lavfi testsrc2 signal (colour bars + clock + 1 kHz tone) per port.
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
# NOTE: no devices: block — lavfi fallback kicks in automatically
volumes:
- recordings:/recordings
- hls:/tmp/hls
environment:
- FFMPEG_PATH=/usr/bin/ffmpeg
- RECORDING_DIR=/recordings
- DELTACAST_PORT_COUNT=8
- SRT_ENABLED=true
- SRT_LATENCY=5000
- PORT=8000
- LOG_LEVEL=INFO
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "8088:80"
depends_on:
- backend
restart: unless-stopped
volumes:
recordings:
driver: local
hls:
driver: local