维护 Nacos

Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
萌森 2024-07-20 13:43:02 +08:00
parent f4323d9f05
commit 4b033a3329
5 changed files with 15 additions and 7 deletions

View File

@ -77,8 +77,8 @@
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mysql/logo.png" width="22"/> | MySQL | https://www.mysql.com/ | 关系数据库管理系统 | MySQL |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/mariadb/logo.png" width="22"/> | MariaDB | https://mariadb.org/ | 【MySQL分支】创新的开源数据库 | MySQL |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/percona/logo.png" width="22"/> | Percona | https://www.percona.com/ | 【MySQL分支】关系数据库管理系统 | MySQL |
| 🔴 | | Nacos | https://nacos.io/ | 动态服务发现、配置管理和服务管理平台 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/nezha/logo.png" width="22"/> | NeZha | https://nacos.io/ | 【哪吒监控】开源、轻量、易用的服务器监控、运维工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/nacos/logo.png" width="22"/> | Nacos | https://nacos.io/ | 动态服务发现、配置管理和服务管理平台 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/nezha/logo.png" width="22"/> | NeZha | https://nezha.wiki/ | 【哪吒监控】开源、轻量、易用的服务器监控、运维工具 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/onedev/logo.png" width="22"/> | OneDev | https://onedev.io/ | DevOps 平台、带有 CI/CD、看板和软件包的 Git 服务器 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/outline/logo.png" width="22"/> | OutLine | https://www.getoutline.com/ | 快速、协作的团队知识库 | |
| 🟢 | <img height="22" src="https://file.lifebus.top/apps/postgresql/logo.png" width="22"/> | PostgreSQL | https://www.postgresql.org/ | 世界上最先进的开源关系数据库 | |

View File

@ -16,6 +16,9 @@ services:
ports:
- ${PANEL_APP_PORT_HTTP}:8848
- ${NACOS_COMMUNICATION_PORT}:9848
env_file:
- /etc/1panel/envs/global.env
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${NACOS_ROOT_PATH}/logs:/home/nacos/logs
- ${NACOS_ROOT_PATH}/data:/home/nacos/data
@ -24,5 +27,3 @@ services:
- NACOS_SERVER_PORT=8848
- NACOS_AUTH_ENABLE=true
- SPRING_DATASOURCE_PLATFORM=mysql
env_file:
- .env

View File

@ -3,6 +3,10 @@
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
if command -v mysql &> /dev/null; then
if [[ -f ./init/mysql-schema.sql ]]; then
mysql -u"$MYSQL_SERVICE_USER" -p"$MYSQL_SERVICE_PASSWORD" -h"$MYSQL_SERVICE_HOST" -P"$MYSQL_SERVICE_PORT" --protocol=TCP "$MYSQL_SERVICE_DB_NAME" < ./init/mysql-schema.sql

View File

@ -3,6 +3,10 @@
if [ -f .env ]; then
source .env
# setup-1 add default values
CURRENT_DIR=$(pwd)
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "Check Finish."
else

View File

@ -17,7 +17,6 @@ additionalProperties:
type: website
crossVersionUpdate: true
limit: 0
recommend: 0
website: https://nacos.io/
github: https://github.com/alibaba/nacos
document: https://github.com/alibaba/nacos/blob/develop/README.md
github: https://github.com/alibaba/nacos/
document: https://nacos.io/docs/latest/what-is-nacos/