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

 

OLD

Upgrade
yt-dlp to nightly

  1. 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
  2. A slash should appear in your console. Now cd into where yt-dlp is stored: cd /app/appdata'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 ./srv/path/Files/YTDL/audio:/app/audio'youtube-dl --version '/srv/path/Files/YTDL/video:/app/video'
  5. - '/srv/path/Files/YTDL/subscriptions:/app/subscriptions' - '/srv/path/Files/YTDL/users:/app/users' ports: - '8998:17442' image: 'tzahi12345/youtubedl-material:latest' restart: unless-stopped