Loading scripts/docker-entrypoint.sh +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,10 @@ echo "Discovering other nodes in cluster..." serviceNodesIps=$(dig ${CLUSTER_DISCOVERY_URL} +short) echo "${serviceNodesIps}" myIp=$(dig ${HOSTNAME} +short) echo "My IP: ${myIp}" export MY_IP="${myIp}" for nodeIp in ${serviceNodesIps} do clusterNodesIps="${clusterNodesIps}<member>${nodeIp}</member>" Loading scripts/hazelcast.template +1 −1 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ </properties> <network> <public-address>${MY_IP}</public-address> <port auto-increment="false" port-count="100">${HAZELCAST_PORT}</port> <outbound-ports> <ports>${HAZELCAST_OUTBOUND_PORTS_RANGE}</ports> Loading @@ -20,7 +21,6 @@ <join> <multicast enabled="false"></multicast> <tcp-ip enabled="true" connection-timeout-seconds="30"> <member>127.0.0.1</member> ${CLUSTER_NODES_IPS_TAGS} </tcp-ip> </join> Loading Loading
scripts/docker-entrypoint.sh +4 −0 Original line number Diff line number Diff line Loading @@ -16,6 +16,10 @@ echo "Discovering other nodes in cluster..." serviceNodesIps=$(dig ${CLUSTER_DISCOVERY_URL} +short) echo "${serviceNodesIps}" myIp=$(dig ${HOSTNAME} +short) echo "My IP: ${myIp}" export MY_IP="${myIp}" for nodeIp in ${serviceNodesIps} do clusterNodesIps="${clusterNodesIps}<member>${nodeIp}</member>" Loading
scripts/hazelcast.template +1 −1 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ </properties> <network> <public-address>${MY_IP}</public-address> <port auto-increment="false" port-count="100">${HAZELCAST_PORT}</port> <outbound-ports> <ports>${HAZELCAST_OUTBOUND_PORTS_RANGE}</ports> Loading @@ -20,7 +21,6 @@ <join> <multicast enabled="false"></multicast> <tcp-ip enabled="true" connection-timeout-seconds="30"> <member>127.0.0.1</member> ${CLUSTER_NODES_IPS_TAGS} </tcp-ip> </join> Loading