Deploying turn server with Docker Compose
The following sample give you example of how deploying a coturn server with Docker Compose. Don't forget to adjust the following settings:
- myuser which is the login account to use turn feature
- mypass which is the password account to use turn feature
- realm which can be any name of fictive domain you choose
services:
coturn:
image: docker.io/coturn/coturn
environment:
- DETECT_EXTERNAL_IP=yes
- DETECT_RELAY_IP=yes
ports:
- "3478:3478"
- "3478:3478/udp"
- "5349:5349"
- "5349:5349/udp"
- "49152-65535:49152-65535/udp"
command: "--fingerprint --lt-cred-mech --user myuser:mypass --realm yourdomain.com
network_mode: "host"
Put the content bellow in docker-compose.yml file and run the following command
docker compose up -d
Check the service is correctly started with the following command
docker compose logs -f
Rating
0
0
There are no comments for now.
Join this Course
to be the first to leave a comment.