-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (44 loc) · 1.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (44 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
snatchr:
container_name: snatchr
environment:
# Docker detection flag
- DOCKER_ENV=true
# Port for the application server (internal)
- PORT=3000
# Host address for the server (e.g., 127.0.0.1 for localhost)
- HOST=0.0.0.0
# Optional external URL to use
- EXTERNAL_URL=
# Only used if EXTERNAL_URL is blank
- USE_HTTPS=
# Enable web UI
- ENABLE_WEB_UI=true
# Directory where downloaded files will be saved
- DOWNLOAD_DIR=./downloads
# Automatically delete downloads after this many minutes (set to 0 to disable)
- CLEANUP_AFTER_MINUTES=120
# Maximum number of downloads allowed at the same time
- MAX_CONCURRENT_DOWNLOADS=5
# Timeout for a single download (in seconds)
- TIMEOUT_SECONDS=600
# Video quality preference https://docs.rs/yt-dlp/latest/yt_dlp/index.html#-video-quality-options
- VIDEO_QUALITY=Best
# Video codec preference https://docs.rs/yt-dlp/latest/yt_dlp/index.html#-video-codecs
- VIDEO_CODEC=VP9
# Audio quality preference https://docs.rs/yt-dlp/latest/yt_dlp/index.html#-audio-quality-options
- AUDIO_QUALITY=Best
# Audio codec preference https://docs.rs/yt-dlp/latest/yt_dlp/index.html#-audio-codecs
- AUDIO_CODEC=Opus
image: ghcr.io/valhalla-development/snatchr:latest
ports:
- "3000:${PORT:-3000}"
restart: unless-stopped
volumes:
- ./downloads:/app/downloads
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s