S
Supanote
Sign in Sign up

Tailscale Subnet Router & Exit Node Docker Compose

plain (yaml) 1 month ago · 24 lines · 217 views
Verified Blueprint Docker

Lightweight Docker container exposing internal VPC subnets and homelabs securely via Tailscale overlay network.

Quick Fetch
1version: '3.8'
2
3services:
4 tailscale:
5 image: tailscale/tailscale:latest
6 container_name: tailscale-subnet-router
7 hostname: vpc-subnet-router
8 restart: unless-stopped
9 cap_add:
10 - NET_ADMIN
11 - NET_RAW
12 network_mode: host
13 environment:
14 - TS_AUTHKEY=${TAILSCALE_AUTH_KEY:-tskey-auth-placeholder}
15 - TS_ROUTES=10.0.0.0/16,192.168.1.0/24
16 - TS_EXTRA_ARGS=--advertise-exit-node
17 - TS_STATE_DIR=/var/lib/tailscale
18 volumes:
19 - /dev/net/tun:/dev/net/tun
20 - tailscale_state:/var/lib/tailscale
22volumes:
23 tailscale_state:

No replies yet

Every reply is a note. Start a discussion, ask a question, or attach a code snippet.

Related Docker & DevOps & Infrastructure Blueprints

Production-ready configurations and diagnostics from the verified Supanote library.

All DevOps & Infrastructure →
Interactive Developer Workbench: Docker Container & JSON Log Viewer

Inspect Docker Compose stdout/stderr streams, JSON log drivers, ANSI color codes, and multi-line stack traces.

Open Docker Log Viewer →

Share Note

Open
Download SVG
Social Card Preview
Open on mobile
Point your phone camera to open this note directly

Report this note

Notification