Last active
December 9, 2024 18:31
-
-
Save Andrewpk/65f214e506796e12434895b09687fa86 to your computer and use it in GitHub Desktop.
tailscale docker-compose example
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
version: '3.8' | |
services: | |
tailscale: | |
image: tailscale/tailscale:stable | |
container_name: tailscaled | |
privileged: true | |
volumes: | |
- /dev/net/tun:/dev/net/tun | |
- tailscale-data:/var/lib/tailscale | |
network_mode: "host" | |
environment: | |
- TS_STATE_DIR=/var/lib/tailscale | |
- TS_AUTHKEY=${TS_AUTHKEY} | |
- TS_EXTRA_ARGS=--advertise-exit-node | |
restart: unless-stopped | |
cap_add: | |
- NET_ADMIN | |
volumes: | |
tailscale-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running Tailscale in Docker
Remember to: