This is a media node for the edumeet project. It is a docker container that can be used to run a media node for the edumeet project. It has a default port range of 250 ports, but can be configured to use more or less by passing arguments when building the container.
To calculate the needed number of ports, the following is used:
- N ports where N is the number of cores on the server for all the user transports
- 1 port pr pipe between any two routers. For an internal pipe that means 2 ports are used, for and external pipe that means 1 port is used.
Add up the number of cores, and the number of pipes between routers and you have the number of ports needed. This will naturally limit itself because the amount of piping between routers is naturally limited because of overall server load.
$ docker build . -t user/edumeet-media-node
$ docker run -p 3000:3000 -p 40000-40249:40000-40249/udp -p 40000-40249:40000-40249/tcp user/edumeet-media-node --ip <public-ip-of-host> --secret <secret-shared-with-room-server>
$ yarn install
$ yarn start --ip <public-ip-of-host> --secret <secret-shared-with-room-server>
To run the server you need to have Node.js version 18 or higher installed. Alternatively you can get some debug output by running it like this:
$ DEBUG=edumeet-media-node:* yarn start --ip <public-ip-of-host> --secret <secret-shared-with-room-server>