summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2018-12-03 15:06:26 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2018-12-03 15:06:26 -0800
commit62ccb48a0ba20ad244acbf4859fe6b4a19335619 (patch)
treefee1cc67ffe72ba04b9cdfc729289e1ecc00206b /docker
parent82409eb34567cd12823586edff021c65145a9feb (diff)
downloadinfinitytier-62ccb48a0ba20ad244acbf4859fe6b4a19335619.tar.gz
infinitytier-62ccb48a0ba20ad244acbf4859fe6b4a19335619.zip
allow alternative ports for central controllers
Diffstat (limited to 'docker')
-rw-r--r--docker/main.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/docker/main.sh b/docker/main.sh
index e96978f3..19e50339 100644
--- a/docker/main.sh
+++ b/docker/main.sh
@@ -28,11 +28,13 @@ ln -s $ZT_IDENTITY_PATH/identity.public identity.public
ln -s $ZT_IDENTITY_PATH/identity.secret identity.secret
popd
+DEFAULT_PORT=9993
+
echo "{
\"settings\": {
\"portMappingEnabled\": true,
\"softwareUpdate\": \"disable\",
- \"interfadePrefixBlacklist\": [
+ \"interfacePrefixBlacklist\": [
\"inot\",
\"nat64\"
],
@@ -44,4 +46,4 @@ echo "{
export GLIBCXX_FORCE_NEW=1
export GLIBCPP_FORCE_NEW=1
export LD_PRELOAD="/usr/lib64/libjemalloc.so"
-exec /usr/local/bin/zerotier-one /var/lib/zerotier-one
+exec /usr/local/bin/zerotier-one -p${ZT_CONTROLLER_PORT:-$DEFAULT_PORT} /var/lib/zerotier-one