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 - VIDARCHIVE_REFRESH_INTERVAL=5
18 # Uncomment to run behind HTTPS proxy:
19 # - VIDARCHIVE_BASE_URL=https://vidarchive.example.com
20 # Uncomment to use a custom yt-dlp path:
21 # - VIDARCHIVE_YTDLP_PATH=/usr/bin/yt-dlp
22 restart: unless-stopped
23 # Give in-flight downloads and the database checkpoint time to finish before
24 # the container is killed; the default 10s can cut a shutdown short.
25 stop_grace_period: 60s
26