修改nacos配置,启用认证功能并添加数据库连接信息
This commit is contained in:
parent
83a6524898
commit
847080d09e
|
@ -1,6 +1,6 @@
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
formFields:
|
formFields:
|
||||||
- default: "false"
|
- default: "true"
|
||||||
edit: true
|
edit: true
|
||||||
envKey: NACOS_AUTH_ENABLE
|
envKey: NACOS_AUTH_ENABLE
|
||||||
labelEn: Enable Authentication
|
labelEn: Enable Authentication
|
||||||
|
|
|
@ -16,6 +16,12 @@ services:
|
||||||
- NACOS_AUTH_IDENTITY_VALUE=${NACOS_AUTH_IDENTITY_VALUE}
|
- NACOS_AUTH_IDENTITY_VALUE=${NACOS_AUTH_IDENTITY_VALUE}
|
||||||
- NACOS_AUTH_TOKEN=${NACOS_AUTH_TOKEN}
|
- NACOS_AUTH_TOKEN=${NACOS_AUTH_TOKEN}
|
||||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
- 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:
|
volumes:
|
||||||
- ./data/logs:/home/nacos/logs
|
- ./data/logs:/home/nacos/logs
|
||||||
- ./data/data:/home/nacos/data
|
- ./data/data:/home/nacos/data
|
||||||
|
|
Loading…
Reference in New Issue