Skip to content

Commit 35e7bef

Browse files
authored
Removed config volume from exit-node (#186)
* removed config volume Removed config volume because serve is not being used. * Replace hardcoded DNS with environment variable
1 parent 8ccf55d commit 35e7bef

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/tailscale-exit-node/compose.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ services:
1515
- TS_LOCAL_ADDR_PORT=127.0.0.1:41234 # The <addr>:<port> for the healthz endpoint
1616
#- TS_ACCEPT_DNS=true # Uncomment when using MagicDNS
1717
volumes:
18-
- ./config:/config # Config folder used to store Tailscale files - you may need to change the path
1918
- ./ts/state:/var/lib/tailscale # Tailscale requirement - you may need to change the path
2019
devices:
2120
- /dev/net/tun:/dev/net/tun # Network configuration for Tailscale to work
2221
dns:
23-
- 9.9.9.9 # Can be changed to your desired DNS provider
22+
- ${DNS_SERVER}
2423
sysctls:
2524
net.ipv4.ip_forward: 1
2625
net.ipv6.conf.all.forwarding: 1
@@ -33,4 +32,4 @@ services:
3332
timeout: 10s # Time to wait for the check to succeed
3433
retries: 3 # Number of retries before marking as unhealthy
3534
start_period: 10s # Time to wait before starting health checks
36-
restart: always
35+
restart: always

0 commit comments

Comments
 (0)