2019-12-27 updates:
- youtube-dl, pip and flask will be updated from PyPI during build
- ffmpeg uses version from apt repo (Debian)
Visit GitHub for more details.
-
From DockerHUB
docker pull ergosteur/youtube-dl-webui
-
From DockerFile
cd /tmp docker build -f </path/to/Dockerfile> -t youtube-dl-webui .
-
Run container
docker run -d \ --name <container_name> \ -e PGID=<gid> \ -e PUID=<uid> \ -e PORT=port \ -e CONF_FILE=<config_file_in_container> \ -p <host_port>:<port> \ -v <host_download_dir>:<download_dir> \ ergosteur/youtube-dl-webui
-
Automatically start container after booting (old method, now include docker-compose.yml)
Create
/etc/systemd/system/docker-youtube_dl_webui.service
, and fill with the contents below:[Unit] Description=youtube-dl downloader Requires=docker.service After=docker.service [Service] Restart=always ExecStart=/usr/bin/docker start -a <container_name> ExecStop=/usr/bin/docker stop -t 2 <container_name> [Install] WantedBy=default.target
All default settings can be found in this json file.
- Files save to:
/srv/youtube_dl
; - Database file location:
/srv/youtube_dl/youtube_dl_webui.db
; - Log size:
10
; - Listen address:
0.0.0.0
; - Listen port:
5000