Skip to content

leandromoreira/nginx-rtmp-dockerfile-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX RTMP Dockerfile

This Dockerfile installs nginx configured with nginx-rtmp-module and some default settings for HLS live streaming.

How to use

  1. Build container docker build -t lucasmundim/nginx-rtmp .

  2. Run it docker run -p 1935:1935 -p 8080:80 --rm lucasmundim/nginx-rtmp

  3. Stream your live content to rtmp://dockerhost:1935/live/stream_name where stream_name is the name of your stream.

  4. 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.

Contributing

  1. Fork it
  2. Checkout the develop branch (git checkout -b develop)
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create new Pull Request

License

This application is distributed under the MIT License.

About

NGINX RTMP Dockerfile

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • XSLT 90.3%
  • Dockerfile 9.7%