Created
January 24, 2025 18:34
-
-
Save theLastOrbit/ae4fc7cfceedef357475b9893f7574f7 to your computer and use it in GitHub Desktop.
Tailscale docker compose file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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