调试 elastic

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-23 16:01:57 +08:00
parent d22f540d57
commit 036b4eed6f
2 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ services:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${ELASTICSEARCH_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
- ${ELASTICSEARCH_ROOT_PATH}/data:/usr/share/elasticsearch/data
- ${ELASTICSEARCH_ROOT_PATH}/backup:/usr/share/elasticsearch/backup
- ${ELASTICSEARCH_ROOT_PATH}/plugins:/usr/share/elasticsearch/plugins

View File

@ -9,6 +9,7 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
mkdir -p $ELASTICSEARCH_ROOT_PATH
mkdir -p "$ELASTICSEARCH_ROOT_PATH/certs"
mkdir -p "$ELASTICSEARCH_ROOT_PATH/data"
mkdir -p "$ELASTICSEARCH_ROOT_PATH/backup"
mkdir -p "$ELASTICSEARCH_ROOT_PATH/plugins"