修缮 Nacos
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
e13f63c8a1
commit
6c99ece45e
|
|
@ -3,14 +3,14 @@ additionalProperties:
|
||||||
- child:
|
- child:
|
||||||
default: ""
|
default: ""
|
||||||
envKey: PANEL_DB_HOST
|
envKey: PANEL_DB_HOST
|
||||||
required: true
|
required: false
|
||||||
type: service
|
type: service
|
||||||
default: mysql
|
default: mysql
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_DB_TYPE
|
envKey: PANEL_DB_TYPE
|
||||||
labelZh: MySQL 服务 (前置检查)
|
labelZh: MySQL 服务 (前置检查)
|
||||||
labelEn: Database Service (Pre-check)
|
labelEn: Database Service (Pre-check)
|
||||||
required: true
|
required: false
|
||||||
type: apps
|
type: apps
|
||||||
values:
|
values:
|
||||||
- label: MySQL
|
- label: MySQL
|
||||||
|
|
@ -19,22 +19,6 @@ additionalProperties:
|
||||||
value: mariadb
|
value: mariadb
|
||||||
- label: Percona
|
- label: Percona
|
||||||
value: percona
|
value: percona
|
||||||
- default: "host"
|
|
||||||
edit: true
|
|
||||||
envKey: NETWORK_MODE
|
|
||||||
labelEn: Drive path
|
|
||||||
labelZh: 网络模式
|
|
||||||
required: true
|
|
||||||
type: select
|
|
||||||
values:
|
|
||||||
- label: 主机网络模式
|
|
||||||
value: "host"
|
|
||||||
- label: 桥接网络模式
|
|
||||||
value: "bridge"
|
|
||||||
- label: 无网络模式
|
|
||||||
value: "none"
|
|
||||||
- label: 1panel-network
|
|
||||||
value: "1panel-network"
|
|
||||||
- default: "/home/nacos"
|
- default: "/home/nacos"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: NACOS_ROOT_PATH
|
envKey: NACOS_ROOT_PATH
|
||||||
|
|
@ -42,7 +26,7 @@ additionalProperties:
|
||||||
labelEn: Data persistence path
|
labelEn: Data persistence path
|
||||||
required: true
|
required: true
|
||||||
type: text
|
type: text
|
||||||
- default: 8848
|
- default: 8080
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_HTTP
|
envKey: PANEL_APP_PORT_HTTP
|
||||||
labelZh: WebUI 端口
|
labelZh: WebUI 端口
|
||||||
|
|
@ -50,19 +34,19 @@ additionalProperties:
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: 9848
|
- default: 8848
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_GRPC_CLIENT
|
envKey: PANEL_APP_PORT_API
|
||||||
labelZh: Nacos gRPC 客户端端口
|
labelZh: WebUI API 端口
|
||||||
labelEn: Nacos gRPC client port
|
labelEn: WebUI API port
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
- default: 9849
|
- default: 9848
|
||||||
edit: true
|
edit: true
|
||||||
envKey: PANEL_APP_PORT_GRPC_SERVER
|
envKey: PANEL_APP_PORT_GRPC
|
||||||
labelZh: Nacos gRPC 服务端端口
|
labelZh: Nacos gRPC 端口
|
||||||
labelEn: Nacos gRPC server port
|
labelEn: Nacos gRPC port
|
||||||
required: true
|
required: true
|
||||||
rule: paramPort
|
rule: paramPort
|
||||||
type: number
|
type: number
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,12 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
labels:
|
labels:
|
||||||
createdBy: "Apps"
|
createdBy: "Apps"
|
||||||
network_mode: ${NETWORK_MODE}
|
networks:
|
||||||
|
- 1panel-network
|
||||||
ports:
|
ports:
|
||||||
- ${PANEL_APP_PORT_HTTP}:8848
|
- ${PANEL_APP_PORT_HTTP}:8080
|
||||||
- ${PANEL_APP_PORT_GRPC_CLIENT}:9848
|
- ${PANEL_APP_PORT_API}:8848
|
||||||
- ${PANEL_APP_PORT_GRPC_SERVER}:9849
|
- ${PANEL_APP_PORT_GRPC}:9848
|
||||||
env_file:
|
env_file:
|
||||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||||
|
|
@ -22,6 +23,6 @@ services:
|
||||||
- ${NACOS_ROOT_PATH}/data:/home/nacos/data
|
- ${NACOS_ROOT_PATH}/data:/home/nacos/data
|
||||||
environment:
|
environment:
|
||||||
- MODE=standalone
|
- MODE=standalone
|
||||||
- NACOS_SERVER_PORT=8848
|
- NACOS_SERVER_PORT=${PANEL_APP_PORT_API:-8848}
|
||||||
- NACOS_AUTH_ENABLE=true
|
- NACOS_AUTH_ENABLE=true
|
||||||
- SPRING_DATASOURCE_PLATFORM=mysql
|
- SPRING_DATASOURCE_PLATFORM=mysql
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue