调试 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 type: text
- default: 9200 - default: 9200
edit: true edit: true
envKey: PANEL_APP_PORT_HTTP envKey: PANEL_APP_PORT_HTTPS
labelZh: WebUI 端口 labelZh: WebUI 端口
labelEn: WebUI port labelEn: WebUI port
required: true required: true
rule: paramPort rule: paramPort
type: number type: number
- default: 9300
edit: true
envKey: PANEL_APP_PORT_CLUSTER
labelZh: 集群端口
labelEn: Cluster port
required: true
rule: paramPort
type: number
- default: "" - default: ""
edit: true edit: true
envKey: ELASTIC_PASSWORD envKey: ELASTIC_PASSWORD

View File

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