A simple installer for Headscale, Headplane, and Traefik β running in Docker.
Automatically sets up HTTPS (via Letβs Encrypt), generates API keys, configures the UI, and more.
I used this script and changed the UI: https://wiki.serversatho.me/en/headscale
A Linux system with root access and a public IP address (we recommend Ubuntu or Debian based systems)
Docker installed on the server
A domain name pointed to your serverβs IP address
TCP ports 80 and 443 open
USE AT LEAST A SEMI VALID E-MAIL LIKE admin@DOMAIN.COM
to avoid Letsencrypt blocking you from assigning a cert
sudo git clone https://github.com/Nocturna22/Headscale-Traefic-Headplane-install-script.gitcd Headscale-Traefic-Headplane-install-script/sudo chmod +x install-headplane.shsudo ./install-headplane.shDuring installation, youβll be prompted for:
Domain (e.g., headscale.example.com)
Email (for Letβs Encrypt SSL)
The installer will build all configs, start Headscale, Traefik, and Headplane, and display your API key at the end.
sudo chmod +x uninstall-headplane.shsudo ./uninstall-headplane.shThis script will stop containers, remove volumes, delete configs/data, and optionally prune unused Docker resources.
Headscale API: https://your-domain.com
Headplane Web UI: https://your-domain.com/admin
Your API Key is displayed at the end of install and also saved to headscale/.env.
headscale/
βββ configs/
β βββ headscale/config.yaml
β βββ headplane/config.yaml
βββ data/
βββ letsencrypt/
βββ docker-compose.yaml
βββ .envHere are the versions confirmed working in this setup:
headplane:
image: 'ghcr.io/tale/headplane:0.6.1'
headscale:
image: 'headscale/headscale:v0.26.1'
traefik:
image: 'traefik:v3.5.3'You can pin these in your docker-compose.yaml to avoid surprises from latest tags.
View logs:
docker logs -f headscale docker logs -f headplane docker logs -f traefik
This setup script is free to use and adapt. Headscale, Headplane, and Traefik are each under their own open-source licenses β check their docs. Pinning versions (instead of latest) is recommended for stability if something does not work.
Enjoy your self-hosted Tailscale control plane!