Add docker-compose.yml
This commit is contained in:
parent
3934f23ccd
commit
96e871ed45
1 changed files with 45 additions and 0 deletions
45
docker-compose.yml
Normal file
45
docker-compose.yml
Normal file
|
|
@ -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
|
||||
Loading…
Reference in a new issue