调试 elastic

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-23 12:10:04 +08:00
parent 9ca9ff8701
commit 91ed4a32b6
4 changed files with 7 additions and 9 deletions

View File

@ -4,6 +4,3 @@ http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"
network.host: 0.0.0.0
xpack.security.enabled: true
xpack.security.enrollment.enabled: true

View File

@ -2,7 +2,7 @@ additionalProperties:
formFields:
- default: "/home/elasticsearch"
edit: true
envKey: BARK_ROOT_PATH
envKey: ELASTICSEARCH_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true

View File

@ -29,11 +29,12 @@ services:
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ${BARK_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/data
- ${BARK_ROOT_PATH}/logs:/usr/share/elasticsearch/logs
- ${BARK_ROOT_PATH}/plugins:/usr/share/elasticsearch/plugins
- ${ELASTICSEARCH_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
- ${ELASTICSEARCH_ROOT_PATH}/data:/usr/share/elasticsearch/data
- ${ELASTICSEARCH_ROOT_PATH}/logs:/usr/share/elasticsearch/logs
- ${ELASTICSEARCH_ROOT_PATH}/plugins:/usr/share/elasticsearch/plugins
environment:
- LICENSE=basic
- ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true
- TAKE_FILE_OWNERSHIP=true
- CLUSTER_INITIAL__MASTER__NODES=${ES_SETTING_NODE_NAME}

View File

@ -8,7 +8,7 @@ if [ -f .env ]; then
sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
chown -R 1000:0 $BARK_ROOT_PATH
chown -R 1000:0 $ELASTICSEARCH_ROOT_PATH
echo "Check Finish."