Skip to content

Instantly share code, notes, and snippets.

@theLastOrbit
Created January 24, 2025 18:34
Show Gist options
  • Save theLastOrbit/ae4fc7cfceedef357475b9893f7574f7 to your computer and use it in GitHub Desktop.
Save theLastOrbit/ae4fc7cfceedef357475b9893f7574f7 to your computer and use it in GitHub Desktop.
Tailscale docker compose file
services:
tailscale-rpi:
image: tailscale/tailscale:latest
container_name: tailscale-rpi
hostname: tailscale-rpi
network_mode: host
environment:
- TS_AUTHKEY=tskey-auth-
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=false
- TS_ACCEPT_DNS=true
- TS_ROUTES=192.168.10.0/24
- TS_EXTRA_ARGS=--advertise-exit-node --accept-routes
volumes:
- /root/tailscale-data:/var/lib/tailscale
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- net_raw
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment