compose.yml
| 1 | services: |
| 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_USERNAME=admin |
| 18 | - VIDARCHIVE_PASSWORD_HASH="$2y$12$..." |
| 19 | # How often the subscription scheduler looks for due runs, in seconds |
| 20 | - VIDARCHIVE_SCHEDULER_INTERVAL=60 |
| 21 | # Uncomment to run behind HTTPS proxy: |
| 22 | # - VIDARCHIVE_BASE_URL=https://vidarchive.example.com |
| 23 | # Uncomment to use a custom yt-dlp path: |
| 24 | # - VIDARCHIVE_YTDLP_PATH=/usr/bin/yt-dlp |
| 25 | restart: unless-stopped |
| 26 | # Give in-flight downloads and the database checkpoint time to finish before |
| 27 | # the container is killed; the default 10s can cut a shutdown short. |
| 28 | stop_grace_period: 60s |
| 29 |