mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 13:16:13 +08:00
发布应用 Elastic
ElasticSearch Elastic Kibana Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
86b6b6d65c
commit
ef39e04e2e
6
.github/README.md
vendored
6
.github/README.md
vendored
@ -66,15 +66,15 @@
|
||||
## 维护状态
|
||||
|
||||
| 状态 | 图标 | 应用名称 | 应用官网 | 短的描述 | 集合 |
|
||||
|:--:|:---------------------------------------------------------------------------------------:|:-----------------------:|:-----------------------------------------:|:---------------------------------------------------------------------|:---------:|
|
||||
|:--:|:------------------------------------------------------------------------------------------------:|:-----------------------:|:-----------------------------------------:|:---------------------------------------------------------------------|:---------:|
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/alist/logo.png" width="22"/> | AList | https://alist.nn.ci/ | 一款支持多重存储的文件列表程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/bark/logo.png" width="22"/> | Bark | https://bark.day.app/ | 一款注重隐私、安全可控的自定义通知推送工具 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/casdoor/logo.png" width="22"/> | Casdoor | https://casdoor.org/ | 身份和访问管理(IAM)/单点登录(SSO)平台 | |
|
||||
| 🔴 | | Cookie Cloud | https://github.com/easychen/CookieCloud/ | CookieCloud是一个和自架服务器同步浏览器Cookie和LocalStorage的小工具 | |
|
||||
| 🔴 | | DeepLX | https://deeplx.owo.network/ | DeepL免费API(无需TOKEN) | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/dockge/logo.png" width="22"/> | Dockge | https://dockge.kuma.pet/ | 面向堆栈的管理器 | |
|
||||
| 🔴 | | Elasticsearch | https://www.elastic.co/elasticsearch/ | Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎 | Elastic |
|
||||
| 🔴 | | Kibana | https://www.elastic.co/kibana/ | Kibana 针对大规模数据快速运行数据分析 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/elastic-elasticsearch/logo.png" width="22"/> | Elasticsearch | https://www.elastic.co/elasticsearch/ | Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/elastic-kibana/logo.png" width="22"/> | Kibana | https://www.elastic.co/kibana/ | Kibana 针对大规模数据快速运行数据分析 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/emby/logo.png" width="22"/> | Emby | https://emby.media/ | Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/emby/logo.png" width="22"/> | Emby-lovechen | https://emby.media/ | 【开心版】Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/gitea/logo.png" width="22"/> | Gitea | https://gitea.io/ | 私有、快速、可靠的 DevOps 平台 | Gitea |
|
||||
|
@ -52,15 +52,15 @@
|
||||
## 维护状态
|
||||
|
||||
| 状态 | 图标 | 应用名称 | 应用官网 | 短的描述 | 集合 |
|
||||
|:--:|:---------------------------------------------------------------------------------------:|:-----------------------:|:-----------------------------------------:|:---------------------------------------------------------------------|:---------:|
|
||||
|:--:|:------------------------------------------------------------------------------------------------:|:-----------------------:|:-----------------------------------------:|:---------------------------------------------------------------------|:---------:|
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/alist/logo.png" width="22"/> | AList | https://alist.nn.ci/ | 一款支持多重存储的文件列表程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/bark/logo.png" width="22"/> | Bark | https://bark.day.app/ | 一款注重隐私、安全可控的自定义通知推送工具 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/casdoor/logo.png" width="22"/> | Casdoor | https://casdoor.org/ | 身份和访问管理(IAM)/单点登录(SSO)平台 | |
|
||||
| 🔴 | | Cookie Cloud | https://github.com/easychen/CookieCloud/ | CookieCloud是一个和自架服务器同步浏览器Cookie和LocalStorage的小工具 | |
|
||||
| 🔴 | | DeepLX | https://deeplx.owo.network/ | DeepL免费API(无需TOKEN) | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/dockge/logo.png" width="22"/> | Dockge | https://dockge.kuma.pet/ | 面向堆栈的管理器 | |
|
||||
| 🔴 | | Elasticsearch | https://www.elastic.co/elasticsearch/ | Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎 | Elastic |
|
||||
| 🔴 | | Kibana | https://www.elastic.co/kibana/ | Kibana 针对大规模数据快速运行数据分析 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/elastic-elasticsearch/logo.png" width="22"/> | Elasticsearch | https://www.elastic.co/elasticsearch/ | Elasticsearch 是一个分布式、RESTful 风格的搜索和数据分析引擎 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/elastic-kibana/logo.png" width="22"/> | Kibana | https://www.elastic.co/kibana/ | Kibana 针对大规模数据快速运行数据分析 | Elastic |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/emby/logo.png" width="22"/> | Emby | https://emby.media/ | Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/emby/logo.png" width="22"/> | Emby-lovechen | https://emby.media/ | 【开心版】Emby Server 是一款个人媒体服务器,可在几乎所有设备上运行应用程序 | |
|
||||
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/gitea/logo.png" width="22"/> | Gitea | https://gitea.io/ | 私有、快速、可靠的 DevOps 平台 | Gitea |
|
||||
|
@ -1,60 +0,0 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/elasticsearch"
|
||||
edit: true
|
||||
envKey: ELASTICSEARCH_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 9200
|
||||
edit: true
|
||||
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: ENROLLMENT_TOKEN
|
||||
labelZh: 节点注册令牌
|
||||
labelEn: Node enrollment token
|
||||
required: true
|
||||
type: text
|
||||
- default: "127.0.0.1:9300"
|
||||
edit: true
|
||||
envKey: ES_SETTING_DISCOVERY_SEED__HOSTS
|
||||
labelZh: 集群发现地址
|
||||
labelEn: Cluster discovery address
|
||||
required: true
|
||||
type: text
|
||||
- default: "elasticsearch"
|
||||
edit: true
|
||||
envKey: ES_SETTING_CLUSTER_NAME
|
||||
labelZh: 集群名称
|
||||
labelEn: Cluster name
|
||||
required: true
|
||||
type: text
|
||||
- default: "es-node"
|
||||
edit: true
|
||||
envKey: ES_SETTING_NODE_NAME
|
||||
labelZh: 节点名称
|
||||
labelEn: Node name
|
||||
required: true
|
||||
type: text
|
||||
- default: "-Xms1g -Xmx1g"
|
||||
edit: true
|
||||
envKey: ES_JAVA_OPTS
|
||||
labelZh: Elasticsearch Java 配置 (可选)
|
||||
labelEn: Elasticsearch Java configuration (optional)
|
||||
required: false
|
||||
type: text
|
@ -1,37 +0,0 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
elasticsearch:
|
||||
image: elasticsearch:8.14.3
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
tty: true
|
||||
ulimits:
|
||||
memlock:
|
||||
soft: -1
|
||||
hard: -1
|
||||
nofile:
|
||||
soft: 65536
|
||||
hard: 65536
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTPS}:9200
|
||||
- ${PANEL_APP_PORT_CLUSTER}:9300
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/data:/usr/share/elasticsearch/data
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/backup:/usr/share/elasticsearch/backup
|
||||
- ${ELASTICSEARCH_ROOT_PATH}/plugins:/usr/share/elasticsearch/plugins
|
||||
environment:
|
||||
- LICENSE=basic
|
||||
- ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true
|
||||
- ES_SETTING_PATH_REPO=/usr/share/elasticsearch/backup
|
@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
mkdir -p $ELASTICSEARCH_ROOT_PATH
|
||||
mkdir -p "$ELASTICSEARCH_ROOT_PATH/data"
|
||||
mkdir -p "$ELASTICSEARCH_ROOT_PATH/backup"
|
||||
mkdir -p "$ELASTICSEARCH_ROOT_PATH/plugins"
|
||||
|
||||
chown -R 1000:1000 $ELASTICSEARCH_ROOT_PATH
|
||||
|
||||
echo "Check Finish."
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
@ -1,15 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
@ -1,117 +0,0 @@
|
||||
# Elasticsearch
|
||||
|
||||
搜索并分析您的数据
|
||||
|
||||
<img src="https://file.lifebus.top/imgs/elasticsearch_logo.svg" width="100%"/>
|
||||
|
||||
Elasticsearch 是 Elastic Stack 核心的分布式搜索和分析引擎。 Logstash 和 Beats 有助于收集、聚合和丰富您的数据并将其存储在
|
||||
Elasticsearch 中。
|
||||
Kibana 使您能够以交互方式探索、可视化和分享对数据的见解,并管理和监控堆栈。 Elasticsearch 是索引、搜索和分析魔法发生的地方。
|
||||
|
||||
## 安装说明
|
||||
|
||||
### 宿主机配置
|
||||
|
||||
+ `vm.max_map_count` 配置
|
||||
|
||||
Elasticsearch 需要设置 `vm.max_map_count` 为至少 `262144`。可以通过以下命令设置:
|
||||
|
||||
```sh
|
||||
grep vm.max_map_count /etc/sysctl.conf
|
||||
|
||||
# 如果输出为空,表示没有设置,需要手动添加
|
||||
vm.max_map_count=262144
|
||||
```
|
||||
|
||||
添加配置
|
||||
|
||||
```sh
|
||||
# 临时生效
|
||||
sysctl -w vm.max_map_count=262144
|
||||
|
||||
# 永久生效
|
||||
echo "vm.max_map_count=262144" >>/etc/sysctl.conf
|
||||
sysctl -p
|
||||
```
|
||||
|
||||
### 新增节点安装
|
||||
|
||||
> `集群名称` 配置
|
||||
|
||||
用于标识集群的名称。默认为 `elasticsearch-cluster`。
|
||||
|
||||
> `节点名称` 配置
|
||||
|
||||
用于标识节点的名称。默认为 `elasticsearch-node`。
|
||||
|
||||
> `注册令牌 (节点)` 配置
|
||||
|
||||
用于加入集群的注册令牌。在集群中的节点中生成,用于加入集群验证。每个注册令牌有效时长30分钟。
|
||||
|
||||
> `集群发现地址` 配置
|
||||
|
||||
用于发现集群中其他节点的地址。
|
||||
|
||||
> `Java 启动参数 (可选)` 配置
|
||||
|
||||
Java 启动参数。默认为空。
|
||||
|
||||
推荐参数:`-Xms1g -Xmx1g`
|
||||
|
||||
小内存推荐参数:`-Xms512m -Xmx512m`
|
||||
|
||||
> 角色配置
|
||||
|
||||
可以通过环境变量配置节点角色。
|
||||
|
||||
```sh
|
||||
ES_SETTING_NODE_ROLES=[master, data, ingest]
|
||||
```
|
||||
|
||||
可选角色
|
||||
|
||||
+ `master`
|
||||
+ `data`
|
||||
+ `data_content`
|
||||
+ `data_hot`
|
||||
+ `data_warm`
|
||||
+ `data_cold`
|
||||
+ `data_frozen`
|
||||
+ `ingest`
|
||||
+ `ml`
|
||||
+ `remote_cluster_client`
|
||||
+ `transform`
|
||||
|
||||
## 快捷操作 (注册成功)
|
||||
|
||||
> 重置密码
|
||||
|
||||
```sh
|
||||
/usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic
|
||||
```
|
||||
|
||||
> 创建 `节点` 注册令牌
|
||||
|
||||
注册令牌的有效期为30分钟。
|
||||
|
||||
```sh
|
||||
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s node
|
||||
```
|
||||
|
||||
> 创建 `kibana` 注册令牌
|
||||
|
||||
注册令牌的有效期为30分钟。
|
||||
|
||||
```sh
|
||||
/usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibana
|
||||
```
|
||||
|
||||
> 导出证书
|
||||
|
||||
<容器名称> 为容器名称或容器 ID,可以通过 `docker ps` 命令查看。
|
||||
|
||||
导出 `http_ca.crt` 证书到当前目录
|
||||
|
||||
```sh
|
||||
docker cp <容器名称>:/usr/share/elasticsearch/config/certs/http_ca.crt .
|
||||
```
|
@ -1,18 +0,0 @@
|
||||
name: Elasticsearch 节点
|
||||
title: 分布式、RESTful 风格的搜索和数据分析引擎
|
||||
description: 分布式、RESTful 风格的搜索和数据分析引擎
|
||||
additionalProperties:
|
||||
key: elastic-elasticsearch-node
|
||||
name: Elasticsearch 节点
|
||||
tags:
|
||||
- Database
|
||||
- Middleware
|
||||
- Local
|
||||
shortDescZh: 分布式、RESTful 风格的搜索和数据分析引擎
|
||||
shortDescEn: Distributed, RESTful-style search and data analysis engine
|
||||
type: runtime
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://www.elastic.co/
|
||||
github: https://github.com/elastic/elasticsearch/
|
||||
document: https://www.elastic.co/docs/
|
Binary file not shown.
Before Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue
Block a user