This Docker image contains a powerful, web-based application designed to stream video files on a continuous loop to multiple YouTube accounts simultaneously. It's a secure, self-hosted solution for managing 24/7 live streams, event replays, or any content you want to keep live.
The application is built with Flask and FFmpeg, and the core Python source code has been compiled with Cython for performance and to protect the intellectual property. The original .py source code is not included in the final image.
This application is designed to be run with docker-compose for easy management of configuration and volumes.
Create a docker-compose.yml file:
services:
streamer:
image: rosyiid1440/stream-youtube:latest
container_name: youtube-streamer-secure
ports:
- "5000:5000"
volumes:
- ./uploads:/app/uploads
environment:
- REQUIRED_API_KEY=your_master_api_key
- APP_USERNAME=your_admin_username
- APP_PASSWORD=your_secure_password
- FLASK_SECRET_KEY=a_very_long_and_random_secret_string
restart: unless-stopped
Create an uploads directory:
mkdir uploads
This directory will be used to store your video files and will persist even if the container is restarted.
Run the container:
docker-compose up -d
Access the application:
Open your web browser and navigate to http://localhost:5000. You will be prompted to log in with the APP_USERNAME and APP_PASSWORD you defined.
You must configure the following environment variables for the application to run:
| Variable | Description | Example |
|---|---|---|
REQUIRED_API_KEY | The master API key for validation against the central gateway. | 12387uhauyduyqwe |
APP_USERNAME | The username to log into the web application. | admin |
APP_PASSWORD | The password for the application user. | MySuperSecureP@ssw0rd |
FLASK_SECRET_KEY | A long, random string used to secure user sessions. | generate_a_random_string_for_this |
app.py) is compiled into a C binary (.so file). It is not present in the Docker image, preventing direct viewing or modification of the core logic.docker pull rosyiid1440/stream-youtube:latest