compose.yml
⎇
Raw
1services:
2 vidarchive:
3 # yt-dlp is installed when the image is built. Rebuild the image to get a
4 # newer one: `docker compose build --pull --no-cache vidarchive`.
5 build:
6 context: .
7 dockerfile: Containerfile
8 container_name: vidarchive
9 ports:
10 - "8080:8080"
11 volumes:
12 - ./data:/data
13 environment:
14 - VIDARCHIVE_PORT=8080
15 - VIDARCHIVE_DATA_DIR=/data
16 - VIDARCHIVE_WORKERS=2
17 # How often the subscription scheduler looks for due runs, in seconds. The
18 # page auto-refresh interval is a UI setting, not an environment variable.
19 - VIDARCHIVE_SCHEDULER_INTERVAL=60
20 # Uncomment to run behind HTTPS proxy:
21 # - VIDARCHIVE_BASE_URL=https://vidarchive.example.com
22 # Uncomment to use a custom yt-dlp path:
23 # - VIDARCHIVE_YTDLP_PATH=/usr/bin/yt-dlp
24 restart: unless-stopped
25 # Give in-flight downloads and the database checkpoint time to finish before
26 # the container is killed; the default 10s can cut a shutdown short.
27 stop_grace_period: 60s
28