From 96e871ed454eca6fad62c6ad72690fc60530676c Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Tue, 14 Apr 2026 09:21:14 -0400 Subject: [PATCH] Add docker-compose.yml --- docker-compose.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 docker-compose.yml 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