Merge pull request #247 from 1Panel-dev/origin/pr@main@feat_elasticsearch

feat: 添加 Elasticsearch
This commit is contained in:
吴小白 2023-07-20 18:15:36 +08:00 committed by GitHub
commit 2b2dc54dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,33 @@
additionalProperties:
formFields:
- default: 9200
edit: true
envKey: HTTP_PORT
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: 9300
edit: true
envKey: TRANS_PORT
labelEn: Trans Port
labelZh: 集群端口
required: true
rule: paramPort
type: number
- default: "-Xms512m -Xmx512m"
edit: true
envKey: ES_JAVA_OPTS
labelEn: ES_JAVA_OPTS
labelZh: ES_JAVA_OPTS
required: true
type: text
- default: 2zcCI9CQcJqZpRpdZLft
edit: true
envKey: ELASTIC_PASSWORD
labelEn: Password
labelZh: 密码
required: true
rule: paramPassword
type: password

View File

@ -0,0 +1,37 @@
version: '3.8'
services:
es:
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.2
container_name: ${CONTAINER_NAME}
restart: always
ports:
- ${HTTP_PORT}:9200
- ${TRANS_PORT}:9300
volumes:
- ./data/data/:/usr/share/elasticsearch/data
- ./data/logs/:/usr/share/elasticsearch/logs
environment:
cluster.name: docker-cluster
discovery.type: single-node
network.host: 0.0.0.0
bootstrap.memory_lock: "true"
xpack.security.enabled: "true"
TAKE_FILE_OWNERSHIP: "true"
ES_JAVA_OPTS: ${ES_JAVA_OPTS}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ulimits:
memlock:
soft: '-1'
hard: '-1'
healthcheck:
test: "curl -sL http://localhost:9200 > /dev/null"
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
- 1panel-network
networks:
1panel-network:
external: true

View File

View File

@ -0,0 +1,19 @@
name: Elasticsearch
tags:
- 工具
title: 分布式、RESTful 风格的搜索和数据分析引擎
type: 工具
description: 分布式、RESTful 风格的搜索和数据分析引擎
additionalProperties:
key: elasticsearch
name: Elasticsearch
tags:
- Tool
shortDescZh: Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎,能够解决不断涌现出的各种用例。
shortDescEn: Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases.
type: tool
crossVersionUpdate: true
limit: 1
website: https://www.elastic.co/elasticsearch/
github: https://github.com/elastic/elasticsearch/tree/8.8/distribution/docker
document: https://www.elastic.co/guide/index.html

BIN
apps/elasticsearch/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB