Lightweight nginx + rtmp module for replicating streams
docker run -dp 1935:1935 dvdgiessen/nginx-rtmp-docker
If you want to use a custom nginx.conf file, create a volume mapping:
docker run -dp 1935:1935 -v /path/to/my/custom/nginx.conf:/etc/nginx/nginx.conf dvdgiessen/nginx-rtmp-docker
If you encounter an error like this:
[alert] could not open error log file: open() "/var/log/nginx/access.log" failed (13: Permission denied)
Then you are most likely running an outdated version of Docker. See the Docker documentation on how to get the latest version.
Based on setup described on the OBS forums here.
In response to the comment below, I got it working, the issue was that I think I had the bitrate up too high. The server was running. I ended up port forwarding my 1935 port and now It works through the internet, I tested it from Virginia to Texas and it works great! thanks! :)
I've been trying to hit this rtmp server, and I haven't been able to. I assume I try hitting it with OBS using my local ip like this.
This yeilded no results. :(
i use your Dockerfile to build image, but my built image size is pretty large 177.5Mb. How can you build docker image so small like this (11.21Mb)? Can you help me