增加nacos
This commit is contained in:
parent
0ba91af26c
commit
c5bfe66300
|
@ -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
|
|
@ -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
|
|
@ -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)。
|
||||
- **可扩展**:支持速率限制、大规模推广计划和多区域主动-主动架构。直接或稍作扩展支持各种相关的基于互联网的使用案例。流量调度和服务治理。
|
|
@ -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/
|
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
|
@ -6,7 +6,7 @@ app_local_dir="/opt/1panel/resource/apps/local"
|
|||
|
||||
# AppStore的git仓库地址(必选)
|
||||
#git_repo_url="https://github.com/okxlin/appstore"
|
||||
git_repo_url="https://github.com/brightching/1panel-appstore"
|
||||
git_repo_url="http://gitea.brightching.cn/brightching/1panel-appstore"
|
||||
|
||||
# 访问git仓库的access token,访问私有仓库时用,优先级高于账密(可选)
|
||||
# 建议使用access token,降低账密泄露的风险
|
||||
|
|
Loading…
Reference in New Issue