Skip to content

Tailscale-up is a container image which extends the original tailscale/tailscale image by building-in a script for automatic execution of `tailscaled` and `tailscale up` CLI command (including all "up" arguments which can be set as a container environment variables).

License

Notifications You must be signed in to change notification settings

christiangonre/docker-tailscale-up

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailscale-up Container image

Build image DockerHub-stable DockerHub-unstable

Tailscale-up is a container image which extends the original tailscale/tailscale image by building-in a script for automatic execution of tailscaled and tailscale up CLI command (including all "up" arguments which can be set as a container environment variables).

Supported flags

tailscale up arguments can be passed as following variables. For flags description, please check: https://tailscale.com/kb/1080/cli/#up

  • ACCEPT_DNS
  • ACCEPT_ROUTES
  • ADVERTISE_EXIT_NODE
  • ADVERTISE_ROUTES
  • ADVERTISE_TAGS
  • AUTHKEY
  • CUSTOM_HOSTNAME
  • EXIT_NODE
  • EXIT_NODE_ALLOW_LAN_ACCESS
  • FORCE_REAUTH
  • HOST_ROUTES
  • NETFILTER_MODE
  • OPERATOR
  • QR
  • RESET
  • SHIELDS_UP
  • SNAT_SUBNET_ROUTES

Example docker-compose

version: '3'
services:
  tailscale:
    image: monolithprojects/tailscale-up:latest
    environment:
      - AUTHKEY=$AUTHKEY
      - ACCEPT_DNS=true # This can be any value as the script is evaluating only if the variable is set or not.
      - CUSTOM_HOSTNAME="myserver"
    volumes:
      - /dev/net/tun:/dev/net/tun
      - /var/lib/tailscale:/var/lib/tailscale
    network_mode: host
    privileged: true
    restart: unless-stopped

License

MIT

Author Information

Created in 2022 by Michal Muransky

About

Tailscale-up is a container image which extends the original tailscale/tailscale image by building-in a script for automatic execution of `tailscaled` and `tailscale up` CLI command (including all "up" arguments which can be set as a container environment variables).

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 79.5%
  • Dockerfile 20.5%