diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7101255 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,45 @@ +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