Add Docker support

Signed-off-by: Gary Kim <gary@garykim.dev>
This commit is contained in:
Gary Kim
2020-05-29 14:57:51 +08:00
parent 4447078bbb
commit e65b570419
6 changed files with 108 additions and 0 deletions
+15
View File
@@ -72,6 +72,21 @@ systemctl enable signaling.service
systemctl start signaling.service
```
### Running with Docker
#### Docker Compose
You will likely have to adjust the Janus command line options depending on the exact network configuration on your server. Refer to [Setup of Janus](#setup-of-janus) and the Janus documentation for how to configure your Janus server.
Copy `server.conf.in` to `server.conf` and adjust it to your liking.
If you're using the [docker-compose.yml](docker-compose.yml) configuration as is, the MCU Url must be set to `ws://localhost:8188`, the NATS Url must be set to `nats://localhost:4222`, and TURN Servers must be set to `turn:localhost:3478?transport=udp,turn:localhost:3478?transport=tcp`.
```bash
docker-compose build
docker-compose up -d
```
## Setup of NATS server
There is a detailed description on how to install and run the NATS server