调试 elastic

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-23 15:14:47 +08:00
parent 60e070c3d0
commit 9f66e9b60e
3 changed files with 7 additions and 3 deletions

View File

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

View File

@ -20,8 +20,7 @@ services:
- ${ENV_FILE:-/etc/1panel/envs/default.env} - ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes: volumes:
- ./config/kibana.yml:/usr/share/kibana/config/kibana.yml - ./config/kibana.yml:/usr/share/kibana/config/kibana.yml
- ${BARK_ROOT_PATH}/config:/usr/share/kibana/config - ${KIBANA_ROOT_PATH}/data:/usr/share/kibana/data
- ${BARK_ROOT_PATH}/data:/usr/share/kibana/data
environment: environment:
- SERVER_NAME="kibana" - SERVER_NAME="kibana"
- SERVER_HOST="0.0.0.0" - SERVER_HOST="0.0.0.0"

View File

@ -8,6 +8,11 @@ if [ -f .env ]; then
sed -i '/^ENV_FILE=/d' .env sed -i '/^ENV_FILE=/d' .env
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
mkdir -p $KIBANA_ROOT_PATH
mkdir -p "$KIBANA_ROOT_PATH/data"
chown -R 1000:1000 $KIBANA_ROOT_PATH
echo "Check Finish." echo "Check Finish."
else else