Tailscale on Ugreen NAS

Tailscale is a modern mesh VPN service built on the WireGuard protocol that securely connects devices into a private network (called a tailnet) without complex configuration. Unlike traditional VPNs that route all traffic through a central server, Tailscale establishes encrypted peer‑to‑peer connections directly between devices, reducing latency and bottlenecks.

🔍 What Tailscale Does

🚀 Docker Installation Steps

I have two NVME SSDs installed in my DXP2800, mirrored, that I use to hold apps and docker containers. It's configured as /volume2. All of my docker containers are run from /volume2/docker

  1. In the Ugreen NAS app, open the App Center
  2. Search for "Docker"
  3. Install Docker

📁 Setup Tailscale

Go to Tailscale's website and create an account. Then setup your docker directories.

	mkdir /volume2/docker
	mkdir /volume2/docker/tailscale

🧾 Docker Compose File

In /volume2/docker/tailscale create docker-compose.yml

	services:
	  tailscale:
	    image: tailscale/tailscale:latest
	    container_name: tailscale
	    network_mode: host
	    privileged: true
	    volumes:
	      - ./tailscale:/var/lib/tailscale
	    environment:
	      - TS_STATE_DIR=/var/lib/tailscale
	    command: tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/var/run/tailscale/tailscaled.sock &
		     tailscale up --accept-dns=true --accept-routes=true
	    restart: unless-stopped 

▶️ Start Tailscale

From within /volume2/docker/tailscale run:

docker compose up -d

Now run docker exec -it tailscale tailscale up That will give you a link to browse to to register the Ugreen NAS with Tailscale.

📜 View Logs

docker logs tailscale

Check the status

docker exec -it tailscale tailscale status

You should see your Ugreen NAS listed.

🌐 Access Web Interface

Go to Tailscale's website. You should see your Ugreen NAS listed.

If you find my content useful, please consider supporting this page:

☕ Buy Me a Coffee