{"id":15724132,"url":"https://github.com/jzombie/docker-coturn","last_synced_at":"2026-02-25T22:03:43.619Z","repository":{"id":250513524,"uuid":"834674921","full_name":"jzombie/docker-coturn","owner":"jzombie","description":"Coturn in Docker.","archived":false,"fork":false,"pushed_at":"2024-07-28T02:34:31.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T20:29:51.737Z","etag":null,"topics":["coturn","stun-server","turn-server","webrtc","webrtc-signaling"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jzombie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/zenOSmosis"]}},"created_at":"2024-07-28T02:32:20.000Z","updated_at":"2024-07-28T02:36:24.000Z","dependencies_parsed_at":"2024-07-28T03:33:36.138Z","dependency_job_id":"3df80ac2-7ebd-448d-862e-d90bfa8cdf6c","html_url":"https://github.com/jzombie/docker-coturn","commit_stats":null,"previous_names":["jzombie/docker-coturn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jzombie/docker-coturn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzombie%2Fdocker-coturn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzombie%2Fdocker-coturn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzombie%2Fdocker-coturn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzombie%2Fdocker-coturn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzombie","download_url":"https://codeload.github.com/jzombie/docker-coturn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzombie%2Fdocker-coturn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29842855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T21:18:31.832Z","status":"ssl_error","status_checked_at":"2026-02-25T21:18:29.265Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["coturn","stun-server","turn-server","webrtc","webrtc-signaling"],"created_at":"2024-10-03T22:14:57.664Z","updated_at":"2026-02-25T22:03:43.599Z","avatar_url":"https://github.com/jzombie.png","language":"Shell","funding_links":["https://paypal.me/zenOSmosis"],"categories":[],"sub_categories":[],"readme":"[![MIT License](https://img.shields.io/github/license/jzombie/docker-coturn)](https://raw.githubusercontent.com/jzombie/docker-coturn/master/LICENSE)\n[![ci][ci-image]][ci-url]\n\n[ci-image]: https://github.com/jzombie/docker-coturn/actions/workflows/ci.yml/badge.svg\n[ci-url]: https://github.com/jzombie/docker-coturn/actions\n\n# Docker image for Coturn TURN / STUN server\n\nA Docker container with the [Coturn TURN server](https://github.com/coturn/coturn).\n\n* hub.docker.com (Docker image): [zenosmosis/docker-coturn](https://hub.docker.com/r/zenosmosis/docker-coturn/)\n* github.com (Repo): [zenOSmosis/docker-coturn](https://github.com/zenOSmosis/docker-coturn)\n\nNote, for those who would rather build this sort of thing from scratch, here's an article written by the author of the original package we forked from:  https://devblogs.microsoft.com/cse/2018/01/29/orchestrating-turn-servers-cloud-deployment.\n\n# Run the container\n\n### Without Docker Compose\n\n```bash\ndocker run \\\n  -d \\\n  -p 3478:3478 \\\n  -p 3478:3478/udp \\\n  -p 65435-65535:65435-65535/udp \\\n  --restart=always \\\n  --name coturn \\\n  zenosmosis/docker-coturn\n```\n\n### With Docker Compose\n\n```bash\ndocker-compose up\n```\n\n## Environment variables\n\nThis image supports some environment variables:\n\n* `USERNAME`: Username needed for turn. Defaults to `username`\n* `PASSWORD`: Password needed for turn. Defaults ro `password`\n* `REALM`: Realm needed for turn. Defaults to `realm`\n* `MIN_PORT`: This defines the min-port for the range used by turn. Defaults to `65435`\n* `MAX_PORT`: This defines the max-port for the range used by turn. Defaults to `65535`\n\n*An example:*\n\n```bash\n# This makes sure, that the min- and max-port is the same for all environment variables\nexport MIN_PORT=50000\nexport MAX_PORT=50010\ndocker run \\\n  -d \\\n  -p 3478:3478 \\\n  -p 3478:3478/udp \\\n  -p ${MIN_PORT}-${MAX_PORT}:${MIN_PORT}-${MAX_PORT}/udp \\\n  -e USERNAME=another_user \\\n  -e PASSWORD=another_password \\\n  -e REALM=another_realm \\\n  -e MIN_PORT=${MIN_PORT} \\\n  -e MAX_PORT=${MAX_PORT} \\\n  --restart=always \\\n  --name coturn \\\n  zenosmosis/docker-coturn\n```\n\n*An easier example (if Docker Compose is installed)*\n\n```bash\ndocker-compose up\n```\n\n(see [docker-compose.yml](docker-compose.yml) for configuration)\n\n## Certificates\n\nStore the cert under `/opt/cert.pem` and the key under `/opt/pkey.pem` and mount them as volumes:\n\n```bash\ndocker run \\\n  -d \\\n  -p 3478:3478 \\\n  -p 3478:3478/udp \\\n  -p 65435-65535:65435-65535/udp \\\n  --volume /opt/cert.pem:/etc/ssl/turn_server_cert.pem \\\n  --volume /opt/pkey.pem:/etc/ssl/turn_server_pkey.pem \\\n  --restart=always \\\n  --name coturn \\\n  zenosmosis/docker-coturn\n```\n\n## Debugging\n\n```bash\ndocker logs coturn\ndocker exec -it coturn /bin/bash\n```\n\n# Bonus: Build and push the container to [Docker Hub](https://hub.docker.com/)\n\n```bash\n# Clone\ngit clone https://github.com/zenOSmosis/docker-coturn.git \n\n# Build\ndocker build -t zenosmosis/docker-coturn .\n\n# Tag\nVERSION=0.0.2\ndocker tag zenosmosis/docker-coturn zenosmosis/docker-coturn:$VERSION\n\n# Login to Docker (if not already logged in)\ndocker login\n\n# Push\ndocker push zenosmosis/docker-coturn:latest\ndocker push zenosmosis/docker-coturn:$VERSION\n\n# At this point, you MAY want to log out of Docker, as it could cause authentication errors when trying to build other's containers\ndocker logout\n```\n\n# Thanks\n\nThe initial version of this image was created by [anastasiia-zolochevska/turn-server-docker-image](https://github.com/anastasiia-zolochevska/turn-server-docker-image).  Thanks to [boldt/turn-server-docker-image](https://github.com/boldt/turn-server-docker-image) for the README.md and Dockerfile updates.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzombie%2Fdocker-coturn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzombie%2Fdocker-coturn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzombie%2Fdocker-coturn/lists"}