Skip to main content Portainer - Advertise Exit Node : r/Tailscale
r/Tailscale icon
Go to Tailscale

Portainer - Advertise Exit Node

Help Needed

Hey guys,

I finally got Tailscale running on Portainer (Open Media Vault on a Raspbery Pi) by using this docker compose stack:

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_AUTH_KEY=SECRET
      - TS_ROUTES=192.168.178.0/24
    cap_add:
      - NET_ADMIN

I can access my machine through it's tailscale IP and I can even access all of my other local machines. However, I do not know how to advertise the exit node. What do I need to include in the docker compose so that my tailscale instance advertises itself as an exit node?

Thank you!
Join the hundreds of engineering teams deploying better code, faster
  • Join the hundreds of engineering teams deploying better code, faster
  • Join the hundreds of engineering teams deploying better code, faster
  • Join the hundreds of engineering teams deploying better code, faster
  • Sort by:
    Best
    Open comment sort options
    [deleted]

    Use TS_EXTRA_ARGS for exit nodes flags: Docker Tailscale kb

    Searching the subreddit also confirms this (comment link).

    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.

    Edited

    deleted by user using PowerSuiteDelete.

    More replies
    More replies