1. Images & Charts
  2. coturn

Echo is acquiring Minimus. See the announcementfor more details.

coturn

coturn

Infra
Updated 13 hours ago

Coturn Overview

Secure your stack with a hardened Coturn image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.


Coturn is a containerized STUN and TURN server that enables peer-to-peer connectivity for real-time communication applications by handling NAT traversal and media relaying. Coturn provides a solution for applications built on WebRTC or SIP-based voice and video calling that need a way to connect peers that sit behind NATs and firewalls, where a direct connection between them often isn't possible.


Try It Out

Run Coturn

Coturn reads its settings from a config file. Create a minimal one that opens the STUN/TURN listener, sets a test user, and logs to stdout:

cat > turnserver.conf <<'EOF'
listening-port=3478
fingerprint
lt-cred-mech
user=testuser:Minimus!
realm=minimus.local
EOF

Coturn also needs the UDP relay port range (49152-65535 by default) reachable, and Docker maps large ranges poorly, so run it with host networking instead of individual -p mappings:

docker run --rm -d --name coturn \
  --network=host \
  -v $PWD/turnserver.conf:/etc/coturn/turnserver.conf \
  reg.mini.dev/coturn \
  --log-file=stdout

Verify It's Running

Check that the server started and is listening:

docker logs coturn

Then send it a STUN binding request from inside the container using the bundled client utility:

docker exec coturn turnutils_stunclient 127.0.0.1

A successful response includes the mapped address the server sees for the request, confirming the STUN listener is reachable and answering.

Clean Up

Stop and remove the container:

docker rm -f coturn

Technical Considerations

The Coturn image provided by Minimus is a slim, security-hardened alternative to the public image. The images are largely interchangeable, with a few differences as noted below.

Coturn built by Minimus:

  1. Runs as a non-root user by default for a security-first approach that protects against privilege escalation attacks, in alignment with the public image.
  2. Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.

The Payoff

A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.


Terms & Info

Trademark

This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.

Disclaimer

Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.