调试 elastic

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-23 16:21:21 +08:00
parent 3524ac9aba
commit 01e4bfa39d
3 changed files with 11 additions and 26 deletions

View File

@ -1,24 +0,0 @@
discovery:
type: single-node
network:
host: 0.0.0.0
http:
host: 0.0.0.0
port: 9200
cors:
enabled: true
allow-origin: "*"
path:
repo:
- /usr/share/elasticsearch/backup
xpack:
security:
enabled: true
autoconfiguration:
enabled: true
enrollment:
enabled: true

View File

@ -9,12 +9,20 @@ additionalProperties:
type: text
- default: 9200
edit: true
envKey: PANEL_APP_PORT_HTTP
envKey: PANEL_APP_PORT_HTTPS
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: 9300
edit: true
envKey: PANEL_APP_PORT_CLUSTER
labelZh: 集群端口
labelEn: Cluster port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: ELASTIC_PASSWORD

View File

@ -22,7 +22,8 @@ services:
soft: 65536
hard: 65536
ports:
- ${PANEL_APP_PORT_HTTP}:9200
- ${PANEL_APP_PORT_HTTPS}:9200
- ${PANEL_APP_PORT_CLUSTER}:9300
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}