Skip to main content

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

 

Upgrade yt-dlp to nightly

  1. Open your container's shell by running docker exec -it <container id> /bin/sh
  2. A slash should appear in your console. Now cd into where yt-dlp is stored: cd /app/node_modules/youtube-dl/bin
  3. Run ./youtube-dl --update-to nightly. The executable is called youtube-dl, but it's still yt-dlp. We do this for legacy reasons
  4. You can confirm it's up to date by running ./youtube-dl --version