fixes
This commit is contained in:
@@ -10,12 +10,14 @@ services:
|
|||||||
- TS_USERSPACE=false
|
- TS_USERSPACE=false
|
||||||
volumes:
|
volumes:
|
||||||
- ./tailscale-state:/var/lib/tailscale
|
- ./tailscale-state:/var/lib/tailscale
|
||||||
|
- ./tailscale-entrypoint.sh:/entrypoint.sh:ro
|
||||||
devices:
|
devices:
|
||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
cap_add:
|
cap_add:
|
||||||
- net_admin
|
- net_admin
|
||||||
- net_raw
|
- net_raw
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
entrypoint: ["/bin/sh", "/entrypoint.sh"]
|
||||||
|
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:latest
|
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