Skip to content

Out-of-the-box docker images for AppRTC dev/test purpose.

License

Notifications You must be signed in to change notification settings

yang19930204/WebRTC-Docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WebRTC-Docker

Out-of-the-box docker images for AppRTC dev/test purpose.

AppRTC-Server

docker run --rm \
  -p 8080:8080 -p 8089:8089 -p 3478:3478 -p 3033:3033 \
  --expose=59000-65000 \
  -e PUBLIC_IP=<server public IP> \
  -v <path to constants.py parent folder>:/apprtc_configs \
  -t -i piasy/apprtc-server

About port expose:

  • 8080 is used for room server;
  • 8089 is used for signal server;
  • 3033 is used for ICE server;
  • 3478 and 59000-65000 is used for TURN/STUN server;

So make sure your firewall has opened those ports.

About how to modify constants.py, see this example, ICE_SERVER_BASE_URL, ICE_SERVER_URL_TEMPLATE and WSS_INSTANCES has been modified.

WebRTC-Build

docker run --rm \
  -e ENABLE_SHADOW_SOCKS=true \
  -e SHADOW_SOCKS_SERVER_ADDR=<your shadowsocks server ip> \
  -e SHADOW_SOCKS_SERVER_PORT=<your shadowsocks server port> \
  -e SHADOW_SOCKS_ENC_METHOD=<your shadowsocks encrypt method> \
  -e SHADOW_SOCKS_ENC_PASS=<your shadowsocks encrypt password> \
  -v <path to place webrtc source>:/webrtc \
  -t -i piasy/webrtc-build

Note: if your encrypt password contains special characters, remember to escape it with \, e.g. &bDmc! to \&bDmc\!.

If you don't need run shadowsocks proxy, you can run:

docker run --rm \
  -e ENABLE_SHADOW_SOCKS=false \
  -v <path to place webrtc source>:/webrtc \
  -t -i piasy/webrtc-build

Only Android is supported now, iOS support is working on, stay tuned!

About

Out-of-the-box docker images for AppRTC dev/test purpose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 75.0%
  • Python 18.7%
  • JavaScript 6.3%