Skip to content
James edited this page Dec 15, 2020 · 5 revisions

To run the server

Debian based image

docker run -d -p 1935:1935 -p 1936:1936 -p 8080:8080 -e PUID=$UID -e PGID=0 -e SSL_DOMAIN='your.domain.tld' -v /your/local/assets/:/assets jamiephonic/rtmps-hls-server:latest

Alpine based image

docker run -d -p 1935:1935 -p 1936:1936 -p 8080:8080 -e PUID=$UID -e PGID=0 -e SSL_DOMAIN='your.domain.tld' -v /your/local/assets/:/assets jamiephonic/rtmps-hls-server:latest-alpine

WHERE:

  • PUID = the User ID you would the the /assets directory to be owned by (Defaults to 0 (root) if not specified)
  • PGID = the Group ID you would the the /assets directory to be owned by (Defaults to 0 (root) if not specified)
  • SSL_DOMAIN = the full domain name of the server. The default SSL certificate generated on first run will be vaid for this domain.

When you start the container, the default players and configuration files will be copied into /your/local/assets/ to allow you to easily access and edit them.
Change this directory to a valid location on your host, for example: /docker/rmtp-server/

Streaming to the server