JamesTurland / JimsGarage

Homelab Goodies
1.78k stars 409 forks source link

Tailscale container example improvement #92

Open Fijo opened 3 months ago

Fijo commented 3 months ago

I stumbled uppon a few things with your tailscale container example, that I'd like you to know.

Source: docker-compose.yaml

After reading the following docs

I'm under the impression access to the /dev/net/tun-DEVICE (via the volume mount) could likely be removed, as it shouldn't be used.

This is because the environment variable TS_USERSPACE is not set and defaults to true. The point of userspace networking is to work without /dev/net/tun.

I'm still in the process of optimizing my own setup. I'll try to share an update based on my experience, (possible with small additional tweaks suggested) soon. But just in case I forget I wrote this issue, already.

Fijo commented 1 month ago

I decided to share a simplified version of the different tailscale-client setups I'm using for now. https://gist.github.com/Fijo/b75d25bcb0be0c5ed8106319a99f6a79

Maybe I'll get around to working out a more specific suggestion here as well at some point...