Dockerfile for building 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 running an outdated version of Docker. See the Docker documentation on how to get the latest version.
Docker Hub: https://hub.docker.com/r/dvdgiessen/nginx-rtmp-docker/
Based on setup described on the OBS forums here.