feat: make docker-compose configurable via .env

Add environment variable support for HOST_PORT, DATA_VOLUME_PATH, and
FFMPEG_TIMEOUT with sensible defaults. Include .env.example template.
This commit is contained in:
2025-11-30 18:22:48 -05:00
parent bbdd0622ab
commit 4c56c059c7
2 changed files with 11 additions and 3 deletions

8
.env.example Normal file
View File

@@ -0,0 +1,8 @@
# Port exposed on host
HOST_PORT=8000
# Path to media files directory (mounted to /data in container)
DATA_VOLUME_PATH=./data
# Maximum job duration in seconds
FFMPEG_TIMEOUT=3600

View File

@@ -2,9 +2,9 @@ services:
ffmpeg-worker: ffmpeg-worker:
build: . build: .
ports: ports:
- "8000:8000" - "${HOST_PORT:-8000}:8000"
volumes: volumes:
- ./data:/data - ${DATA_VOLUME_PATH:-./data}:/data
environment: environment:
- DATA_PATH=/data - DATA_PATH=/data
- FFMPEG_TIMEOUT=3600 - FFMPEG_TIMEOUT=${FFMPEG_TIMEOUT:-3600}