Tailscale

Portainer Stack:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
---
version: "3.9"
services:
  tailscale:
    container_name: tailscale
    image: tailscale/tailscale
    command: tailscaled
    restart: ${RST_MODE-unless-stopped}
    network_mode: host
    privileged: ${PRIVILEGED-true}
    volumes:
      - /dev/net/tun:/dev/net/tun
      - /var/lib:/var/lib
    labels:
      - com.centurylinklabs.watchtower.enable=${AutoUpdate-true}

Then to login, from the terminal send:

1
docker exec tailscaled tailscale up

Environments:

1
2
3
PRIVILEGED=true
AutoUpdate=true
RST_MODE=unless-stopped