From c5bfe6630050307a1d3d40bfead46787b443fdf6 Mon Sep 17 00:00:00 2001 From: BrightChing Date: Mon, 22 Apr 2024 15:22:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0nacos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/nacos/2.3.2/data.yml | 92 ++++++++++++++++++++++++++++ apps/nacos/2.3.2/docker-compose.yml | 27 ++++++++ apps/nacos/README.md | 30 +++++++++ apps/nacos/data.yml | 19 ++++++ apps/nacos/logo.png | Bin 0 -> 2257 bytes local_appstore_sync_helper.sh | 2 +- 6 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 apps/nacos/2.3.2/data.yml create mode 100644 apps/nacos/2.3.2/docker-compose.yml create mode 100644 apps/nacos/README.md create mode 100644 apps/nacos/data.yml create mode 100644 apps/nacos/logo.png diff --git a/apps/nacos/2.3.2/data.yml b/apps/nacos/2.3.2/data.yml new file mode 100644 index 0000000..20559a2 --- /dev/null +++ b/apps/nacos/2.3.2/data.yml @@ -0,0 +1,92 @@ +additionalProperties: + formFields: + - default: "false" + envKey: NACOS_AUTH_ENABLE + labelEn: Enable Authentication + labelZh: 开启鉴权 + required: true + type: select + values: + - label: 开启 + value: "true" + - label: 关闭 + value: "false" + - default: 8848 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Nacos run port + labelZh: Nacos 运行端口 + required: true + rule: paramPort + type: number + - default: 9848 + edit: true + envKey: PANEL_APP_PORT_COMMUNICATION + labelEn: Nacos communication port + labelZh: Nacos 通讯端口 + required: true + rule: paramPort + type: number + - default: "serverIdentity" + edit: true + envKey: NACOS_AUTH_IDENTITY_KEY + labelEn: Nacos auth identity key + labelZh: Nacos身份验证密钥键 + required: true + type: text + - default: "security" + edit: true + envKey: NACOS_AUTH_IDENTITY_VALUE + labelEn: Nacos auth identity value + labelZh: Nacos身份验证密钥值 + required: true + type: text + - default: "SecretKey012345678901234567890123456789012345678901234567890123456789" + edit: true + envKey: NACOS_AUTH_TOKEN + labelEn: Nacos auth token + labelZh: Nacos身份验证令牌 + required: true + type: text + - default: "" + edit: true + envKey: NACOS_SERVER_IP + labelEn: IP can be specified in multi network card mode + labelZh: 多网卡模式下可以指定IP + required: false + type: text + - default: "2g" + edit: true + envKey: JVM_XMS + labelEn: JVM_XMS + labelZh: JVM_XMS + required: true + type: text + - default: "2g" + edit: true + envKey: JVM_XMX + labelEn: JVM_XMX + labelZh: JVM_XMX + required: true + type: text + - default: "1g" + edit: true + envKey: JVM_XMN + labelEn: JVM_XMN + labelZh: JVM_XMN + required: true + type: text + - default: "128m" + edit: true + envKey: JVM_MS + labelEn: JVM_MS + labelZh: JVM_MS + required: true + type: text + - default: "320m" + edit: true + envKey: JVM_MMS + labelEn: JVM_MMS + labelZh: JVM_MMS + required: true + type: text diff --git a/apps/nacos/2.3.2/docker-compose.yml b/apps/nacos/2.3.2/docker-compose.yml new file mode 100644 index 0000000..a73f53c --- /dev/null +++ b/apps/nacos/2.3.2/docker-compose.yml @@ -0,0 +1,27 @@ +services: + nacos: + image: nacos/nacos-server:v2.3.2-slim + container_name: ${CONTAINER_NAME}-standalone + restart: always + environment: + - NACOS_AUTH_ENABLE=${NACOS_AUTH_ENABLE:-FALSE} + - PREFER_HOST_MODE=hostname + - MODE=standalone + - JVM_XMS=${JVM_XMS} + - JVM_XMX=${JVM_XMX} + - JVM_XMN=${JVM_XMN} + - JVM_MS=${JVM_MS} + - JVM_MMS=${JVM_MMS} + - NACOS_AUTH_IDENTITY_KEY=${NACOS_AUTH_IDENTITY_KEY} + - NACOS_AUTH_IDENTITY_VALUE=${NACOS_AUTH_IDENTITY_VALUE} + - NACOS_AUTH_TOKEN=${NACOS_AUTH_TOKEN} + - NACOS_SERVER_IP=${NACOS_SERVER_IP} + volumes: + - ./data/logs:/home/nacos/logs + - ./data/data:/home/nacos/data + ports: + - "${PANEL_APP_PORT_HTTP}:8848" + - "${PANEL_APP_PORT_COMMUNICATION}:9848" +networks: + 1panel-network: + external: true diff --git a/apps/nacos/README.md b/apps/nacos/README.md new file mode 100644 index 0000000..1d8a591 --- /dev/null +++ b/apps/nacos/README.md @@ -0,0 +1,30 @@ +# 使用说明 + +## 服务地址 + +- 访问地址:`http://IP:8848/nacos` +- 用户名:`nacos` +- 密码:`nacos` + +## 参数调优 + +```shell +- JVM_XMS=64m # -Xms default :2g +- JVM_XMX=64m # -Xmx default :2g +- JVM_XMN=16m # -Xmn default :1g +- JVM_MS=8m # -XX:MetaspaceSize default :128m +- JVM_MMS=8m # -XX:MaxMetaspaceSize default :320m +``` + +# Nacos + +**Nacos** 是一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台。 + +## Nacos 的关键特性 + +## 特色: + +- **易用**:动态服务发现的一站式解决方案。配置管理和动态 DNS服务。提供 20 多项开箱即用的特性,适用于面向服务的架构。轻量级的生产就绪控制台。 +- **可靠**:无缝支持 Kubernetes 和 Spring Cloud,更容易在流行的公共云(例如阿里云和 AWS)上部署和运行,支持多租户和多环境。 +- **云原生**:源自阿里巴巴集团经过时间验证的内部产品。支持具有数百万服务规模的大型场景。开源产品并提供企业级的服务级别协议(SLA)。 +- **可扩展**:支持速率限制、大规模推广计划和多区域主动-主动架构。直接或稍作扩展支持各种相关的基于互联网的使用案例。流量调度和服务治理。 \ No newline at end of file diff --git a/apps/nacos/data.yml b/apps/nacos/data.yml new file mode 100644 index 0000000..e66160f --- /dev/null +++ b/apps/nacos/data.yml @@ -0,0 +1,19 @@ +name: Nacos +tags: + - 中间件 +title: 动态服务发现、配置管理和服务管理平台 +description: 动态服务发现、配置管理和服务管理平台 +additionalProperties: + key: nacos + name: Nacos + tags: + - Middleware + shortDescZh: 动态服务发现、配置管理和服务管理平台 + shortDescEn: Dynamic service discovery, configuration and service management platform + type: tool + crossVersionUpdate: false + limit: 1 + recommend: 0 + website: https://nacos.io/ + github: https://github.com/alibaba/nacos + document: https://nacos.io/docs/latest/what-is-nacos/ diff --git a/apps/nacos/log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