MeTube logo

MeTube

Self-hosted video downloader for YouTube and other sites (web UI for yt-dlp)

Alternative to: 4k video downloader


MeTube is a self-hosted web UI for yt-dlp. Paste a link from YouTube or hundreds of other sites and it downloads video, audio, subtitles and thumbnails to your server, from single videos, playlists or entire channels. Supports channel and playlist subscriptions, per-download quality, format and folder choices, and server-wide yt-dlp options.

MeTube Docker Compose example

Self-host MeTube on your own server, homelab, or VPS starting from this Docker Compose example. It runs MeTube in Docker containers using the official ghcr.io/alexta69/metube:latest image, with persistent volumes and automatic restarts preconfigured. Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.

services:
  metube:
    image: ghcr.io/alexta69/metube:latest
    volumes:
      - downloads:/downloads
    restart: unless-stopped
    environment:
      # User ID MeTube runs as and writes downloaded files with.
      PUID: "1000"
      # Group ID MeTube runs as and writes downloaded files with.
      PGID: "1000"
      # Umask for the files MeTube creates.
      UMASK: "022"
      # Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL or NONE.
      LOGLEVEL: "INFO"
      # UI theme: light, dark, or auto to follow the system.
      DEFAULT_THEME: "auto"
      # Number of downloads that run at once; the rest wait their turn.
      MAX_CONCURRENT_DOWNLOADS: "3"
      # Seconds before finished and failed downloads leave the Completed list (0 = never).
      CLEAR_COMPLETED_AFTER: "0"
      # Also delete the file from disk when its entry is removed from Completed (true, false or ask).
      DELETE_FILE_ON_TRASHCAN: "false"
      # Filename template for downloads (yt-dlp output template syntax).
      OUTPUT_TEMPLATE: "%(title)s.%(ext)s"
      # Options applied to every download, as a JSON object of yt-dlp options.
      YTDL_OPTIONS: "{}"
      # Base path, for serving MeTube under a subpath of a reverse proxy.
      URL_PREFIX: "/"
      # Comma-separated origins allowed to call MeTube from other sites (browser extensions, bookmarklets).
      CORS_ALLOWED_ORIGINS: ""

volumes:
  downloads:

Prefer a managed setup? WinterFlow installs, configures, and updates MeTube for you using this same Docker Compose configuration.