Run janus gateway well configured in a Docker container.
Assuming Docker and Docker Compose are installed:
Build the image
$ docker build -t lklock/docker-janus .
Run the container
$ DOCKER_IP=<THE IP OF YOUR DOCKER> docker run -p 8880:8880 -p 7088:7088 -p 8088:8088 -p 8188:8188 -p 10000-10200:10000-10200/udp lklock/docker-janus
Where DOCKER_IP
is the public IP address where Docker services can be reached. This will be used by Janus to send back the right IP to Web clients (ICE candidates) so that they can communicate with Janus correctly.
That's it!
Details:
To make this even easier, copy docker-compose.yml
from this repo. Then you'll only need to:
$ DOCKER_IP=<YOUR DOCKER IP> docker-compose up
Where ports:
- 8880: expose janus documentation and admin/monitoring website
- 7088: expose Admin/monitor server
- 8088: expose Janus server
- 8188: expose Websocket server
- 10000-10200/udp: Used during session establishment