deltacast-sdi-recorder/docker-compose.yml

46 lines
972 B
YAML
Raw Normal View History

2026-04-14 09:21:14 -04:00
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "8000:8000"
devices:
- "/dev/deltacast0:/dev/deltacast0"
- "/dev/deltacast1:/dev/deltacast1"
- "/dev/deltacast2:/dev/deltacast2"
- "/dev/deltacast3:/dev/deltacast3"
volumes:
- recordings:/recordings
- /tmp/hls:/tmp/hls
environment:
- FFMPEG_PATH=/usr/bin/ffmpeg
- RECORDING_DIR=/recordings
- DELTACAST_PORT_COUNT=4
- 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:
- "80:80"
depends_on:
- backend
restart: unless-stopped
volumes:
recordings:
driver: local