docker部署nacos-server:1.1.3单机模式,配置写为 spring.datasource.platform="mysql" 报错,报 No DataSource set,疑似有bug

docker 容器启动 通过挂载 /home/nacos/conf 写配置参数和 通过-e传入参数都试过了,都不行,nacos.log 报错日志见下面截图。最后把spring.datasource.platform=""就可以了

启动成功的配置:

通过挂载 /home/nacos/conf 写配置参数。

# spring
server.servlet.contextPath=/nacos
server.contextPath=/nacos
server.port=8848
#nacos.cmdb.dumpTaskInterval=3600
#nacos.cmdb.eventTaskInterval=10
#nacos.cmdb.labelTaskInterval=300
#nacos.cmdb.loadDataAtStart=false
spring.datasource.platform=
db.num=1
db.url.0=[此处省略]
db.user=[此处省略]
db.password=[此处省略]
server.tomcat.accesslog.enabled=false
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D
# default current work dir
server.tomcat.basedir=
## spring security config
### turn off security

nacos.security.ignore.urls=/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.ico,/console-fe/public/**,/v1/auth/login,/v1/console/health/**,/v1/cs/**,/v1/ns/**,/v1/cmdb/**,/actuator/**,/v1/console/server/**
# metrics for elastic search
management.metrics.export.elastic.enabled=false
management.metrics.export.influx.enabled=false

nacos.naming.distro.taskDispatchThreadCount=10
nacos.naming.distro.taskDispatchPeriod=200
nacos.naming.distro.batchSyncKeyCount=1000
nacos.naming.distro.initDataRatio=0.9
nacos.naming.distro.syncRetryDelay=5000
nacos.naming.data.warmup=true

 

你可能感兴趣的:(nacos,docker安装公共组件)