support port-mapping feature from latest tsdns

This commit is contained in:
iceBear67
2026-07-15 00:35:46 +08:00
parent 8e2eeaf54d
commit 29c6cb21f5
+6
View File
@@ -15,6 +15,9 @@ if docker container inspect "tsdns" ; then
exit 0
fi
mkdir -p /etc/tsdns
echo "_HOMELAB_ZONE_._HOMELAB_TLD_ 22 host.docker.internal 22" > /etc/tsdns/portmap
docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \
-e "HOMELAB_TLD=_HOMELAB_TLD_" \
-e "HOMELAB_ZONE=_HOMELAB_ZONE_" \
@@ -22,9 +25,12 @@ docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \
-e "TS_STATE_DIR=/tstate" \
-e "ADVERTISE_ROUTE=_ADVERTISE_ROUTE_" \
-e "TS_DEBUG_OMIT_LOCAL_ADDRS=true" \
-e "PORT_MAP_FILE=/portmap" \
--network "workspace" \
-p 41641:41641/udp \
-v "/data/tsdns:/tstate" \
-v "/etc/tsdns/portmap:/portmap" \
--add-host "host.docker.internal:host-gateway" \
--restart unless-stopped \
--name "tsdns" \
ghcr.io/saltedfishclub/tsdns:latest