youtube-cli/docker-compose.yml

36 lines
896 B
YAML

services:
youtube-web:
build:
context: .
dockerfile: Dockerfile
container_name: youtube-web
ports:
- "4096:4096"
environment:
- PORT=4096
- DOWNLOAD_DIR=/mnt/mediaserver/Youtube
- CONFIG_DIR=/app/.config/youtube_cli
- LOG_DIR=/app/logs
- FLASK_DEBUG=false
- USE_GUNICORN=false
- PYTHONUNBUFFERED=1
volumes:
# NAS mount for downloads
- /mnt/mediaserver/Youtube:/mnt/mediaserver/Youtube
# Persist app config, queue, archive
- youtube-config:/app/.config/youtube_cli
# Persist logs
- youtube-logs:/app/logs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4096/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
youtube-config:
driver: local
youtube-logs:
driver: local