mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-15 19:31:31 +00:00
Add CLUSTER_NETWORK_HOST environment variable to configure network.host
If CLUSTER_NETWORK_HOST is not set, then 0.0.0.0.0 is used.
This commit is contained in:
@@ -23,6 +23,7 @@ ARG TEMPLATE_VERSION=v3.13.1
|
|||||||
# CLUSTER_INITIAL_MASTER_NODES set to own node by default.
|
# CLUSTER_INITIAL_MASTER_NODES set to own node by default.
|
||||||
ENV ELASTIC_CLUSTER="false" \
|
ENV ELASTIC_CLUSTER="false" \
|
||||||
CLUSTER_NAME="wazuh" \
|
CLUSTER_NAME="wazuh" \
|
||||||
|
CLUSTER_NETWORK_HOST="0.0.0.0" \
|
||||||
CLUSTER_NODE_MASTER="false" \
|
CLUSTER_NODE_MASTER="false" \
|
||||||
CLUSTER_NODE_DATA="true" \
|
CLUSTER_NODE_DATA="true" \
|
||||||
CLUSTER_NODE_INGEST="true" \
|
CLUSTER_NODE_INGEST="true" \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ if [[ $CLUSTER_NODE_MASTER == "true" ]]; then
|
|||||||
# cluster.initial_master_nodes for bootstrap the cluster
|
# cluster.initial_master_nodes for bootstrap the cluster
|
||||||
cat > $elastic_config_file << EOF
|
cat > $elastic_config_file << EOF
|
||||||
# cluster node
|
# cluster node
|
||||||
network.host: 0.0.0.0
|
network.host: $CLUSTER_NETWORK_HOST
|
||||||
node.name: $CLUSTER_MASTER_NODE_NAME
|
node.name: $CLUSTER_MASTER_NODE_NAME
|
||||||
node.master: $CLUSTER_NODE_MASTER
|
node.master: $CLUSTER_NODE_MASTER
|
||||||
cluster.initial_master_nodes:
|
cluster.initial_master_nodes:
|
||||||
@@ -39,7 +39,7 @@ remove_cluster_config $elastic_config_file
|
|||||||
|
|
||||||
cat > $elastic_config_file << EOF
|
cat > $elastic_config_file << EOF
|
||||||
# cluster node
|
# cluster node
|
||||||
network.host: 0.0.0.0
|
network.host: $CLUSTER_NETWORK_HOST
|
||||||
node.name: $CLUSTER_NODE_NAME
|
node.name: $CLUSTER_NODE_NAME
|
||||||
node.master: false
|
node.master: false
|
||||||
discovery.seed_hosts:
|
discovery.seed_hosts:
|
||||||
|
|||||||
Reference in New Issue
Block a user