This repository contains a Docker setup for downloading YouTube archive streams using ytarchive. The setup includes a customizable shell script and Docker Compose configuration to automate the download process.
docker run --env=CHANNEL_URL=your_channel_url --env=YTARCHIVE_VERBOSE=true --env=OUTPUT_VIDEO="/data/%(channel)s/%(title)s (%(upload_date)s)/%(title)s" --restart=unless-stopped -d ghcr.io/zixties60/docker-ytarchive:main
The docker-compose.yml file sets up the service, environment variables, and volume mounts:
version: "3.8"
services:
ytarchive:
image: ghcr.io/zixties60/docker-ytarchive:main
environment:
- CHANNEL_URL="your_channel_url" # Ensure this environment variable is set
- OUTPUT_VIDEO="output_file_name" # Ensure this environment variable is set
- YTARCHIVE_VERBOSE=true # Enable verbose logging
volumes:
- host/path/to/config:/config
- host/path/to/data:/data
CHANNEL_URL
: The URL of the YouTube channel to monitor and download.OUTPUT_VIDEO
: ytarchive output video file name.\YTARCHIVE_VERBOSE
: Set totrue
to enable verbose logging for debugging.
-
Clone the repository:
git clone https://github.com/Zixties60/docker-ytarchive.git cd docker-ytarchive
-
Build the Docker image:
docker-compose build --no-cache
-
Run Docker Compose:
docker-compose up
-
Set Environment Variables:
CHANNEL_URL
: The YouTube channel URL to monitor and download videos from. (required)OUTPUT_VIDEO
(default:/data/%(channel)s/%(upload_date)s/%(title)s
): ytarchive output video file name.YTARCHIVE_VERBOSE
(default:false
): Set totrue
to enable verbose logging.
- Ensure that
CHANNEL_URL
is set in the environment variables. - Check permissions of
entrypoint.sh
to ensure it is executable. - Verify the file paths and volume mounts are correct in
docker-compose.yml
.
This project is licensed under the GNU General Public License v3.0 (GPL-3.0).