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:
8
.env.example
Normal file
8
.env.example
Normal 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
|
||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user