mirror of
https://github.com/valitydev/wazuh-docker.git
synced 2024-11-06 09:45:19 +00:00
Added 'cluster.initial_master_nodes' and related env variable.
This commit is contained in:
parent
780dfe1a51
commit
1922ae145a
@ -24,9 +24,18 @@ node:
|
||||
|
||||
bootstrap:
|
||||
memory_lock: ${CLUSTER_MEMORY_LOCK}
|
||||
|
||||
cluster.initial_master_nodes:
|
||||
- '${CLUSTER_INITIAL_MASTER_NODES}'
|
||||
|
||||
" >> $elastic_config_file
|
||||
else
|
||||
|
||||
echo 'cluster.initial_master_nodes: ["elasticsearch"]' >> $elastic_config_file
|
||||
cat >> $elastic_config_file <<'EOF'
|
||||
cluster.initial_master_nodes:
|
||||
- 'elasticsearch'
|
||||
EOF
|
||||
|
||||
# echo 'discovery.type: single-node'
|
||||
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user