fix:docker启动nacos-server无法访问配置文件

This commit is contained in:
haoxr 2020-10-14 15:47:54 +08:00
parent a040c66f00
commit 6a8d0a6e3b
2 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,8 @@ spring:
discovery: discovery:
server-addr: http://localhost:8848 server-addr: http://localhost:8848
config: config:
# docker启动nacos-server需要配置
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml file-extension: yaml
group: DEFAULT_GROUP group: DEFAULT_GROUP
prefix: ${spring.application.name} prefix: ${spring.application.name}

View File

@ -9,6 +9,8 @@ spring:
discovery: discovery:
server-addr: http://localhost:8848 server-addr: http://localhost:8848
config: config:
# docker启动nacos-server需要配置
server-addr: ${spring.cloud.nacos.discovery.server-addr}
file-extension: yaml file-extension: yaml