This Dockerfile installs nginx configured with nginx-rtmp-module and some default settings for HLS live streaming.
-
Build container
docker build -t lucasmundim/nginx-rtmp .
-
Run it
docker run -p 1935:1935 -p 8080:80 --rm lucasmundim/nginx-rtmp
-
Stream your live content to
rtmp://dockerhost:1935/live/stream_name
wherestream_name
is the name of your stream. -
In Safari, VLC or any HLS compatible browser / player, open
http://dockerhost:8080/hls/stream_name.m3u8
. Note that the first time, it might take a few (10-15) seconds before the stream works. This is because when you start streaming to the server, it needs to generate the first segments and the related playlists.
- Fork it
- Checkout the develop branch (
git checkout -b develop
) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
This application is distributed under the MIT License.