Streams videos from a directory on the host.
Set:
VIDEO_PATH
environment variable to the target directoryVIDEO_TITLE
environment variable to the title of the HTML page
Example:
VIDEO_PATH=/home/root/downloads python app.py
point your browser at http://127.0.0.1:8080
click some links
watch your videos
Mount your video folder to the /data
in the container.
Example:
docker build -t videoserver
docker run --rm -p 80:5000 -v $(pwd)/video-data/:/data --name vidsrv videoserver
point your browser at http://127.0.0.1
click some links
watch your videos