Skip to content

Commit

Permalink
Set routes as env and add private subnet to the defaults (#2)
Browse files Browse the repository at this point in the history
* Set routes as env and add private subnet to the defaults

* fix envs

---------

Co-authored-by: Pablo Mendez <[email protected]>
  • Loading branch information
pablomendezroyo and Pablo Mendez authored Feb 11, 2025
1 parent 7e49748 commit 773853c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ ARG UPSTREAM_VERSION
FROM tailscale/tailscale:${UPSTREAM_VERSION}

ENV TS_STATE_DIR=/var/lib/tailscale
ENV TS_USERSPACE=false
ENV TS_EXTRA_ARGS="--advertise-routes=172.33.0.0/16 --advertise-exit-node $EXTRA_OPTS"
ENV TS_USERSPACE=false
9 changes: 5 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.5'
version: "3.5"
services:
tailscale:
build:
Expand All @@ -8,8 +8,9 @@ services:
image: tailscale.dnp.dappnode.eth:0.1.0
restart: unless-stopped
environment:
- TS_AUTHKEY=
- EXTRA_OPTS=
- TS_AUTHKEY= # https://tailscale.com/kb/1282/docker#ts_authkey
- TS_ROUTES=172.33.0.0/16,10.20.0.0/24 # https://tailscale.com/kb/1282/docker#ts_routes 172.33.0.0/16 is the current subnet in dappnode and 10.20.0.0/24 will be eventually used as the new subnet
- TS_EXTRA_ARGS=--advertise-exit-node # https://tailscale.com/kb/1282/docker#ts_extra_args
volumes:
- state:/var/lib/tailscale
cap_add:
Expand All @@ -18,4 +19,4 @@ services:
devices:
- /dev/net/tun:/dev/net/tun
volumes:
state:
state:

0 comments on commit 773853c

Please sign in to comment.