mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-10-14 16:07:12 +00:00
[es] Add support for Swarm Mode with proper transport publish computation
This commit is contained in:
1 parent
e570ac8715
commit
8cea619c13
2 files changed
+18
No files matched your search
@@ -18,6 +18,12 @@ OPTS="$OPTS -Des.path.conf=/conf \
|
||||
-Des.transport.tcp.port=9300 \
|
||||
-Des.http.port=9200"
|
||||
|
||||
if [ "$DISCOVER_TRANSPORT_IP" != "" ]; then
|
||||
ip=`ipaddr show dev $DISCOVER_TRANSPORT_IP scope global|awk '$1 == "inet" { if (!match($2,"/32")) { gsub("/.*","",$2) ; print $2 } }'`
|
||||
echo "Discovered address $ip for $DISCOVER_TRANSPORT_IP"
|
||||
OPTS="$OPTS -Des.transport.host=$ip"
|
||||
fi
|
||||
|
||||
if [ -n "$CLUSTER" ]; then
|
||||
OPTS="$OPTS -Des.cluster.name=$CLUSTER"
|
||||
if [ -n "$CLUSTER_FROM" ]; then
|
||||
|
||||
Reference in new issue
Block a user