A robust way of streaming media content live using the NGINX web server and its RTMP module.
Builds of the image are available on Docker Hub.
docker pull codeworksio/streaming-server
Alternatively you can build the image yourself.
docker build --tag codeworksio/streaming-server \
github.com/codeworksio/docker-streaming-server
Start container using:
docker run --detach --restart always \
--name streaming-server \
--hostname streaming-server \
--publish 1935:1935 \
--publish 8080:8080 \
--publish 8443:8443 \
codeworksio/streaming-server
Start the streaming server and consumer from the command line
cd ./documents/examples
docker-compose up -d
Use Open Broadcaster Software to stream your content
Sources
> +
> Video Capture Device
Controls
> Settings
> Stream
Custom Streaming Server
rtmp://localhost/live
test
Start Streaming
buttonGo to http://localhost:9999
URL address in your browser to view the media live.