This repository contains a few utilities to bring up a Tailscale exit node quickly and easily using docker and docker-compose on almost any Linux machine.
- docker
- docker-compose
- Clone this repository
- Edit the
auth.key
file with your Tailscale auth key. To make a new auth key, go here. - Run
docker compose up
(ordocker-compose up
if you're running a older version of docker/docker-compose) - Wait for the Tailscale service to start
- Visit https://login.tailscale.com/admin/machines to approve the machine's status as an exit node (should be named exit-node, click on the "...", then "Edit route settings" then click "Use as exit node")
- Optionally, disable key expiry by clicking on the "..." again and then "Disable key expiry"
- Once you've made sure everything is working, you can stop the container by doing Ctrl+C and then
docker compose down
(ordocker-compose down
) - Run it in a detached manner by doing
docker compose up -d
(ordocker-compose up -d
) and don't worry about it anymore :)
The image size, after built, is about 80MB-90MB. The folder itself (after deleting auth.key) is about 70-80KB.
- You can delete the
auth.key
file after you've made sure everything is working. - Do not delete the
config/
directory, it contains the Tailscale configuration files. - If you want to change the Tailscale hostname, you can do so by editing the
config.sh
file or just changing it on the tailscale admin panel.