YouTubeDL-Material
version: "2"
services:
ytdl_material:
environment:
ALLOW_CONFIG_MUTATIONS: 'true'
ytdl_mongodb_connection_string: 'mongodb://ytdl-mongo-db:27017'
ytdl_use_local_db: 'false'
write_ytdl_config: 'true'
restart: unless-stopped
depends_on:
- ytdl-mongo-db
volumes:
- /srv/path/Files/YTDL/appdata:/app/appdata
- /srv/path/Files/YTDL/audio:/app/audio
- /srv/path/Files/YTDL/video:/app/video
- /srv/path/Files/YTDL/subscriptions:/app/subscriptions
- /srv/path/Files/YTDL/users:/app/users
ports:
- "8998:17442"
image: tzahi12345/youtubedl-material:latest
ytdl-mongo-db:
image: mongo
ports:
- "27017:27017"
logging:
driver: "none"
container_name: ytdl-mongo-db
restart: unless-stopped
volumes:
- /srv/path/Files/YTDL/db/:/data/db
OLD
Upgrade yt-dlp to nightly
- Open your container's shell by running
version:docker'3.3' services: youtubedl-material: container_name: ytdl-material volumes:exec -it'<container id> /srv/path/Files/YTDL/appdata:bin/sh - A slash should appear in your console. Now cd into where
yt-dlp
is stored:cd /app/
appdata'node_modules/youtube-dl/bin - Run
./youtube-dl --update-to
. The executable is called'nightlyyoutube-dl
, but it's still yt-dlp. We do this for legacy reasons - You can confirm it's up to date by running
./
srv/path/Files/YTDL/audio:/app/audio'youtube-dl --version'/srv/path/Files/YTDL/video:/app/video'