ansible-nas icon indicating copy to clipboard operation
ansible-nas copied to clipboard

Tailscale vpn

Open HitLuca opened this issue 9 months ago • 0 comments

Application you'd like to add: Tailscale

Link to Docker image: https://hub.docker.com/r/tailscale/tailscale

Why you'd like this application added: Defines an easy way to connect to isolated networks without needing to open ports or have publicly accessible ips. Only thing needed to make it work is having a tailscale account and run tailscale up inside the container, and bind the machine to the user's network

sample docker-compose config

services:
  tailscale:
    container_name: tailscale
    hostname: tailscale-nas
    image: tailscale/tailscale:stable
    volumes:
      - ${CONFIG_FOLDER}/tailscale:/var/lib
      - /dev/net/tun:/dev/net/tun # Required for tailscale to work
    cap_add: # Required for tailscale to work
      - net_admin
      - sys_module
    command: tailscaled
    network_mode: host
    privileged: true
    restart: unless-stopped

HitLuca avatar Jul 18 '25 12:07 HitLuca