Skip to content

ido1990/tailscale-relay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tailscale-relay

This is a docker image based on alpine:3 for setting up a tailscale instance in relay mode and exit node.

Prerequisites

  • Defined docker network via docker network create -d bridge <network name>
  • Subnet network via docker inspect <NETWORK ID> | grep Subnet
  • If you want, you can add multiple subnets using comma to seperate, eg. 172.23.0.0/16,10.0.0.0/24
  • Auth key from https://login.tailscale.com/admin/authkeys (e.g. tskey-123abc...)

Requirements

  • --cap-add=NET_ADMIN
  • Volume for persistent storage /tailscale

Use

Run the following docker run command.

  • AUTHKEY=tskey-123abc...
  • ROUTES=172.31.0.0/16
docker run -d \
    -v /tailscale \
    --cap-add=NET_ADMIN \
    --network=<docker_net> \
    -e "ROUTES=<docker_network>" \
    -e "AUTHKEY=<your_auth_key>" \
    ido1990/tailscale-docker:latest

This version should pull the lastest version of Tailscale for every deployment (weekly). You can use Watchtower to keep Tailscale updated.

Find this image on Docker Hub

About

Tailscale docker image in relay mode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 66.0%
  • Shell 34.0%