Skip to content

Commit

Permalink
Merge pull request #247 from 1Panel-dev/origin/pr@main@feat_elasticse…
Browse files Browse the repository at this point in the history
…arch

feat: 添加 Elasticsearch
  • Loading branch information
wojiushixiaobai authored Jul 20, 2023
2 parents aea76ed + c1384c8 commit 2b2dc54
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
33 changes: 33 additions & 0 deletions apps/elasticsearch/8.8.2/data.yml
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions apps/elasticsearch/8.8.2/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
Empty file added apps/elasticsearch/README.md
Empty file.
19 changes: 19 additions & 0 deletions apps/elasticsearch/data.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file added apps/elasticsearch/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b2dc54

Please sign in to comment.