mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
@@ -0,0 +1,82 @@
|
||||
# ======================== Elasticsearch Configuration =========================
|
||||
#
|
||||
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
|
||||
# Before you set out to tweak and tune the configuration, make sure you
|
||||
# understand what are you trying to accomplish and the consequences.
|
||||
#
|
||||
# The primary way of configuring a node is via this file. This template lists
|
||||
# the most important settings you may want to configure for a production cluster.
|
||||
#
|
||||
# Please consult the documentation for further information on configuration options:
|
||||
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
|
||||
#
|
||||
# ---------------------------------- Cluster -----------------------------------
|
||||
#
|
||||
# Use a descriptive name for your cluster:
|
||||
#
|
||||
cluster.name: elasticsearch-cluster
|
||||
#
|
||||
# ------------------------------------ Node ------------------------------------
|
||||
#
|
||||
# Use a descriptive name for the node:
|
||||
#
|
||||
#node.name: node-1
|
||||
#
|
||||
# Add custom attributes to the node:
|
||||
#
|
||||
#node.attr.rack: r1
|
||||
#
|
||||
# ----------------------------------- Paths ------------------------------------
|
||||
#
|
||||
# Path to directory where to store the data (separate multiple locations by comma):
|
||||
#
|
||||
@path.data@
|
||||
#
|
||||
# Path to log files:
|
||||
#
|
||||
@path.logs@
|
||||
#
|
||||
# ----------------------------------- Memory -----------------------------------
|
||||
#
|
||||
# Lock the memory on startup:
|
||||
#
|
||||
#bootstrap.memory_lock: true
|
||||
#
|
||||
# Make sure that the heap size is set to about half the memory available
|
||||
# on the system and that the owner of the process is allowed to use this
|
||||
# limit.
|
||||
#
|
||||
# Elasticsearch performs poorly when the system is swapping the memory.
|
||||
#
|
||||
# ---------------------------------- Network -----------------------------------
|
||||
#
|
||||
# By default Elasticsearch is only accessible on localhost. Set a different
|
||||
# address here to expose this node on the network:
|
||||
#
|
||||
network.host: 0.0.0.0
|
||||
#
|
||||
# By default Elasticsearch listens for HTTP traffic on the first free port it
|
||||
# finds starting at 9200. Set a specific HTTP port here:
|
||||
#
|
||||
http.port: 9200
|
||||
#
|
||||
# For more information, consult the network module documentation.
|
||||
#
|
||||
# --------------------------------- Discovery ----------------------------------
|
||||
#
|
||||
# Pass an initial list of hosts to perform discovery when this node is started:
|
||||
# The default list of hosts is ["127.0.0.1", "[::1]"]
|
||||
#
|
||||
#discovery.seed_hosts: ["host1", "host2"]
|
||||
#
|
||||
# Bootstrap the cluster using an initial set of master-eligible nodes:
|
||||
#
|
||||
#cluster.initial_master_nodes: ["node-1", "node-2"]
|
||||
#
|
||||
# For more information, consult the discovery and cluster formation module documentation.
|
||||
#
|
||||
# ---------------------------------- Various -----------------------------------
|
||||
#
|
||||
# Allow wildcard deletion of indices:
|
||||
#
|
||||
#action.destructive_requires_name: false
|
||||
@@ -0,0 +1,53 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/elasticsearch"
|
||||
edit: true
|
||||
envKey: BARK_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_API
|
||||
labelZh: 通讯端口
|
||||
labelEn: Communication port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "elasticsearch-cluster"
|
||||
edit: true
|
||||
envKey: ES_SETTING_CLUSTER_NAME
|
||||
labelZh: 节点名称
|
||||
labelEn: Cluster name
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ELASTIC_PASSWORD
|
||||
labelZh: Elasticsearch 密码 (elastic)
|
||||
labelEn: Elasticsearch password (elastic)
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: KIBANA_PASSWORD
|
||||
labelZh: Kibana 密码 (kibana_system)
|
||||
labelEn: Kibana password (kibana_system)
|
||||
required: false
|
||||
type: password
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ENROLLMENT_TOKEN
|
||||
labelZh: 注册令牌 (节点)
|
||||
labelEn: Enrollment token (node)
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,39 @@
|
||||
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
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTPS}:9200
|
||||
- ${PANEL_APP_PORT_API}:9300
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
|
||||
- ${BARK_ROOT_PATH}/certs:/usr/share/elasticsearch/config/certs
|
||||
- ${BARK_ROOT_PATH}/config:/usr/share/elasticsearch/config
|
||||
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/data
|
||||
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/logs
|
||||
- ${BARK_ROOT_PATH}/data:/usr/share/elasticsearch/plugins
|
||||
environment:
|
||||
- ES_SETTING_HTTP_PORT=9200
|
||||
- ES_SETTING_CLUSTER_NAME=elasticsearch-cluster
|
||||
- ES_SETTING_LICENSE=basic
|
||||
- MEM_LIMIT=1073741824
|
||||
- ES_SETTING_BOOTSTRAP_MEMORY__LOCK=true
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
@@ -0,0 +1,33 @@
|
||||
# Elasticsearch
|
||||
|
||||
搜索并分析您的数据
|
||||
|
||||

|
||||
|
||||
Elasticsearch 是 Elastic Stack 核心的分布式搜索和分析引擎。 Logstash 和 Beats 有助于收集、聚合和丰富您的数据并将其存储在
|
||||
Elasticsearch 中。
|
||||
Kibana 使您能够以交互方式探索、可视化和分享对数据的见解,并管理和监控堆栈。 Elasticsearch 是索引、搜索和分析魔法发生的地方。
|
||||
|
||||
## 安装说明
|
||||
|
||||
### 单节点安装
|
||||
|
||||
+ `节点名称` 配置
|
||||
|
||||
用于标识集群中的节点。默认情况下,节点名称是随机生成的 UUID。
|
||||
|
||||
+ `Elasticsearch 密码 (elastic)` 配置
|
||||
|
||||
单节点启动必填
|
||||
|
||||
用于保护内置用户 `elastic` 的密码。默认情况下,密码是随机生成的。
|
||||
|
||||
+ `Kibana 密码 (kibana_system)` 配置
|
||||
|
||||
单节点启动必填
|
||||
|
||||
用于保护内置用户 `kibana_system` 的密码。默认情况下,密码是随机生成的。
|
||||
|
||||
+ `注册令牌 (节点)` 配置
|
||||
|
||||
单节点启动可忽略, 如果是作为 `集群` 中的节点启动,此项 `必须` 填写,可忽略密码配置。
|
||||
@@ -0,0 +1,19 @@
|
||||
name: Kibana
|
||||
title: 可视化Elasticsearch数据并导航Elastic堆栈
|
||||
description: 可视化Elasticsearch数据并导航Elastic堆栈
|
||||
additionalProperties:
|
||||
key: kibana
|
||||
name: Kibana
|
||||
tags:
|
||||
- WebSite
|
||||
- Middleware
|
||||
- Tool
|
||||
- Local
|
||||
shortDescZh: 可视化Elasticsearch数据并导航Elastic堆栈
|
||||
shortDescEn: Visualize Elasticsearch data and navigate the Elastic stack
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://www.elastic.co/
|
||||
github: https://github.com/elastic/kibana/
|
||||
document: https://www.elastic.co/docs/
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user