diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..4d2f427 --- /dev/null +++ b/.env.example @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 94bb54a..26268c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,9 +2,9 @@ services: ffmpeg-worker: build: . ports: - - "8000:8000" + - "${HOST_PORT:-8000}:8000" volumes: - - ./data:/data + - ${DATA_VOLUME_PATH:-./data}:/data environment: - DATA_PATH=/data - - FFMPEG_TIMEOUT=3600 + - FFMPEG_TIMEOUT=${FFMPEG_TIMEOUT:-3600}