r/Tailscale icon

Go to Tailscale

Portainer - Advertise Exit Node

Help Needed

Join the hundreds of engineering teams deploying better code, faster

Sorry to be such a n00b but how would I use that in my docker compose so that I can enable the “- -advertise-exit-node” flag?

I’m pretty new to the docker game and still trying to figure it all out.

More replies More replies

With the help of u/artemis-sun I finally figured it out. Posting my final stack docker compose here for everyone else who runs into this issue:

version: '3.3'
services:
tailscale:
container_name: tailscaled
volumes:
- /var/lib:/var/lib
- /dev/net/tun:/dev/net/tun
network_mode: host
image: tailscale/tailscale
restart: unless-stopped
privileged: true
environment:
- PUID=998
- PGID=100
- TS_USERSPACE=true
- TS_ROUTES=192.168.178.0/24
- TS_AUTH_KEY=YOURTSKEY
- TS_EXTRA_ARGS=--advertise-exit-node
cap_add:
- NET_ADMIN

Please note that I I had to make sure to use -- and not one long dash – as shown in the answer below. I also had to remove the " " to make it work.

deleted by user using PowerSuiteDelete.

More replies More replies