Add docker support

This commit is contained in:
Mikhail Yevchenko
2026-04-01 20:41:52 +00:00
parent 27e97adbc8
commit a468a7a268
13 changed files with 417 additions and 609 deletions
+31
View File
@@ -0,0 +1,31 @@
services:
yt-dlp-proxy:
build: .
ports:
- "5000:5000"
environment:
- PORT=5000
- LOG_LEVEL=INFO
- CACHE_TTL=31536000
- SOCKET_TIMEOUT=30
- ALLOWED_DOMAINS=youtube.com,youtu.be,pornhub.com,xvideos.com
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# Optional: nginx reverse proxy configuration
# Uncomment to enable
#
# nginx:
# image: nginx:latest
# ports:
# - "80:80"
# - "443:443"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf:ro
# depends_on:
# - yt-dlp-proxy