Skip to content

Out-of-the-box docker images for AppRTC server with SSL support and inbuilt TURN server

License

Notifications You must be signed in to change notification settings

paragpatel/AppRTC-Docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Out-of-the-box docker images for AppRTC server with SSL support and inbuilt TURN server

AppRTC server with SSL support and inbuilt TURN server

Linux:

docker run -e PUBLIC_IP=<server public domain/IP> \
--net=host \
-v ${PWD}/letsencrypt/privkey.pem:/cert/key.pem \
-v ${PWD}/letsencrypt/fullchain.pem:/cert/cert.pem \
-v ${PWD}/logs:/webrtc_avconf \
pegome/apprtc

Mac:

docker run -e PUBLIC_IP=<server public domain/IP> \
-p 442:443 -p 8089:8089 -p 3478:3478 -p 3478:3478/udp -p 3033:3033 -p 59000-59100:59000-59100/udp \
-v ${PWD}/letsencrypt/privkey.pem:/cert/key.pem \
-v ${PWD}/letsencrypt/fullchain.pem:/cert/cert.pem \
-v ${PWD}/logs:/webrtc_avconf \
pegome/apprtc

Note: you need SSL key and cert for your domain to work this docker.

Manual build AppRTC server Linux host (must have docker installed):

$ mkdir rtc
$ git clone https://github.com/paragpatel/AppRTC-Docker rtc
$ cd rtc/apprtc-server
$ cp /etc/letsencrypt/privkey.pem key-pebble.pem
$ cp /etc/letsencrypt/fullchain.pem cert-pebble.pem
$ chmod +x *.sh
$ sudo ./build.sh         # Build the docker image - docker build -t webrtc . (takes 5mins to build)
$ sudo ./docker-run.sh    # create SSL certs for hostname and start servers

About port publish:

  • TCP 443 is used for room server;
  • TCP 8089 is used for signal server;
  • TCP 3033 is used for ICE server;
  • TCP 3478, UDP 3478 and UDP 59000-59100 is used for TURN/STUN server;

So make sure your firewall has opened those ports.

About

Out-of-the-box docker images for AppRTC server with SSL support and inbuilt TURN server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.5%
  • Shell 30.6%
  • Dockerfile 11.6%
  • JavaScript 5.3%