diff --git a/apps/elastic-elasticsearch/8.14.3/config/elasticsearch.yml b/apps/elastic-elasticsearch/8.14.3/config/elasticsearch.yml index bda577f41..df7a3b0f3 100644 --- a/apps/elastic-elasticsearch/8.14.3/config/elasticsearch.yml +++ b/apps/elastic-elasticsearch/8.14.3/config/elasticsearch.yml @@ -4,6 +4,17 @@ http.host: 0.0.0.0 http.cors.enabled: true http.cors.allow-origin: "*" network.host: 0.0.0.0 +path: + data: /usr/share/elasticsearch/data + logs: /usr/share/elasticsearch/logs +gateway.recover_after_nodes: 1 +cluster.name: ${CLUSTER_NAME} +node.name: ${ES_SETTING_NODE_NAME} +node.master: true +node.ingest: true +node.data: true + + #----------------------- BEGIN SECURITY AUTO CONFIGURATION ----------------------- # # The following settings, TLS certificates, and keys have been automatically diff --git a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh index 786287cb4..616de008c 100644 --- a/apps/elastic-elasticsearch/8.14.3/scripts/init.sh +++ b/apps/elastic-elasticsearch/8.14.3/scripts/init.sh @@ -8,13 +8,13 @@ if [ -f .env ]; then sed -i '/^ENV_FILE=/d' .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env - mkdir -p $ELASTICSEARCH_ROOT_PATH - mkdir -p $ELASTICSEARCH_DATA_PATH/certs - mkdir -p $ELASTICSEARCH_DATA_PATH/data - mkdir -p $ELASTICSEARCH_DATA_PATH/logs - mkdir -p $ELASTICSEARCH_DATA_PATH/plugins + mkdir -p "$ELASTICSEARCH_ROOT_PATH" + mkdir -p "$ELASTICSEARCH_DATA_PATH/certs" + mkdir -p "$ELASTICSEARCH_DATA_PATH/data" + mkdir -p "$ELASTICSEARCH_DATA_PATH/logs" + mkdir -p "$ELASTICSEARCH_DATA_PATH/plugins" - chown -R 1000:0 $ELASTICSEARCH_ROOT_PATH + chown -R 1000:0 "$ELASTICSEARCH_ROOT_PATH" echo "Check Finish."