fixes
This commit is contained in:
@@ -10,12 +10,14 @@ services:
|
||||
- TS_USERSPACE=false
|
||||
volumes:
|
||||
- ./tailscale-state:/var/lib/tailscale
|
||||
- ./tailscale-entrypoint.sh:/entrypoint.sh:ro
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
cap_add:
|
||||
- net_admin
|
||||
- net_raw
|
||||
restart: unless-stopped
|
||||
entrypoint: ["/bin/sh", "/entrypoint.sh"]
|
||||
|
||||
nginx:
|
||||
image: nginx:latest
|
||||
|
||||
11
tailscale-entrypoint.sh
Executable file
11
tailscale-entrypoint.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
tailscaled &
|
||||
TAILSCALD_PID=$!
|
||||
|
||||
sleep 2
|
||||
|
||||
tailscale funnel 80
|
||||
|
||||
wait $TAILSCALD_PID
|
||||
Reference in New Issue
Block a user