修改nacos配置,启用认证功能并添加数据库连接信息
This commit is contained in:
parent
83a6524898
commit
847080d09e
|
@ -1,6 +1,6 @@
|
|||
additionalProperties:
|
||||
formFields:
|
||||
- default: "false"
|
||||
- default: "true"
|
||||
edit: true
|
||||
envKey: NACOS_AUTH_ENABLE
|
||||
labelEn: Enable Authentication
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue