Description
derper-docker is a Docker image for running your own DERP server, the relay server used by Tailscale. You run the container on a machine with a public domain name, set DERP_DOMAIN to that hostname, and it serves DERP over HTTPS on port 443 by default. Certificates come from Let's Encrypt unless you choose manual mode and supply your own. The image can also run a STUN server on UDP port 3478, which is on by default, and the HTTP port can be changed or turned off. A table in the README lists every setting with its default, including the certificate directory, the listening address and the STUN port. Client verification is optional. With DERP_VERIFY_CLIENTS enabled, the server checks clients through a local tailscaled instance, and DERP_VERIFY_CLIENT_URL can point it at an admission controller that permits or refuses connections. Verification needs the container to reach Tailscale's local API socket, which you mount into the container when Tailscale runs directly on Linux. The README links to Tailscale's official guide for custom DERP servers. The project is public on GitHub.…
Highlights
- Runs a self-hosted DERP server in Docker
- Let's Encrypt certificates or manual certificates
- Built-in STUN server on UDP port 3478
- Optional client verification through tailscaled
- Every setting is an environment variable
Ratings & Reviews
No ratings yet
Be the first to rate Derper Docker.
People also visit
Docktail
Expose Docker containers as Tailscale Services using label-based configuration
Derper Docker FAQ
What does derper-docker run?
A DERP server for Tailscale, packaged as a Docker image you run on your own machine.
What do I have to set?
DERP_DOMAIN, the hostname of your server, is required. Every other setting has a default.
Does it need certificates?
By default it gets them from Let's Encrypt. Set DERP_CERT_MODE to manual to use your own.
How do I verify clients?
Set DERP_VERIFY_CLIENTS to true and mount the tailscaled socket into the container, or set DERP_VERIFY_CLIENT_URL to an admission controller.
Which ports are used?
HTTPS on 443 by default, STUN on UDP 3478, and HTTP on port 80, which can be disabled by setting it to -1.
What are the best Derper Docker alternatives?
Popular alternatives to Derper Docker include ScaleTail, Tsdproxy and Docktail. See all Derper Docker alternatives
