This repository is depricated. The original tailscale container image now allows to run Tailscale easily and pass all the neccesary parameters. https://hub.docker.com/r/tailscale/tailscale
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).
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
 
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-stoppedMIT
Created in 2022 by Michal Muransky