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=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: - "80:80" depends_on: - backend restart: unless-stopped volumes: recordings: driver: local