OPENVIDU in Docker Desktop for Mac working local network :D

Hi, I just want to share how to test locally(development only) with your Docker Desktop for mac in your local network.

Docker Desktop for Mac has limitations about bridge network or exposing a lot of ports, but
you can configure KMS, and COTURN to use a “few” ports with environment variables, like a said just for testing locally.

I will expose my command:
docker run \
-p 4443:4443 \
-p 3478:3478 \
-p 40000-40010:40000-40010 \
-p 57001-57011:57001-57011 \
–rm \
-e KMS_MIN_PORT=40000 \
-e KMS_MAX_PORT=40010 \
-e MIN_PORT=57001 \
-e MAX_PORT=57011 \
-e OPENVIDU_SECRET=MY_SECRET \
-e DOMAIN_OR_PUBLIC_IP=YOUR_LOCAL_IP \
openvidu/openvidu-server-kms:2.17.0

I only expose 10 ports for KMS and 10 ports for COTURN.

doc reference:
COTURN INFO
KMS INFO

4 Likes