fix: multiple tsdns containers are created
This commit is contained in:
@@ -4,9 +4,5 @@ depend() {
|
|||||||
need docker net
|
need docker net
|
||||||
}
|
}
|
||||||
|
|
||||||
supervisor="supervise-daemon"
|
|
||||||
respawn_delay=5
|
|
||||||
respawn_max=0
|
|
||||||
|
|
||||||
command="/usr/bin/tsdns"
|
command="/usr/bin/tsdns"
|
||||||
pidfile="/run/${RC_SVCNAME}.pid"
|
pidfile="/run/${RC_SVCNAME}.pid"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
|
||||||
if ! docker network inspect "workspace" ; then
|
if ! docker network inspect "workspace" ; then
|
||||||
docker network create \
|
docker network create \
|
||||||
--attachable \
|
--attachable \
|
||||||
@@ -23,4 +22,5 @@ docker run -e "TS_AUTHKEY=_TS_AUTHKEY_" \
|
|||||||
-p 41641:41641/udp \
|
-p 41641:41641/udp \
|
||||||
-v "/data/tsdns:/tstate" \
|
-v "/data/tsdns:/tstate" \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
|
--name "tsdns" \
|
||||||
ghcr.io/saltedfishclub/tsdns:latest
|
ghcr.io/saltedfishclub/tsdns:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user