修改nacos配置,启用认证功能并添加数据库连接信息

This commit is contained in:
brightching 2024-04-22 16:24:29 +08:00
parent 83a6524898
commit 847080d09e
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
additionalProperties:
formFields:
- default: "false"
- default: "true"
edit: true
envKey: NACOS_AUTH_ENABLE
labelEn: Enable Authentication

View File

@ -16,6 +16,12 @@ services:
- NACOS_AUTH_IDENTITY_VALUE=${NACOS_AUTH_IDENTITY_VALUE}
- NACOS_AUTH_TOKEN=${NACOS_AUTH_TOKEN}
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- SPRING_DATASOURCE_PLATFORM=${SPRING_DATASOURCE_PLATFORM}
- MYSQL_SERVICE_HOST=${MYSQL_SERVICE_HOST}
- MYSQL_SERVICE_PORT=${MYSQL_SERVICE_PORT}
- MYSQL_SERVICE_DB_NAME=${MYSQL_SERVICE_DB_NAME}
- MYSQL_SERVICE_USER=${MYSQL_SERVICE_USER}
- MYSQL_SERVICE_PASSWORD=${MYSQL_SERVICE_PASSWORD}
volumes:
- ./data/logs:/home/nacos/logs
- ./data/data:/home/nacos/data