Docker - SpringConfig - Connection refused to ConfigServer

后端 未结 1 1288
臣服心动
臣服心动 2021-01-26 12:30

I\'m trying to deploy a ConfigServrService and a Client with a remote repository using DockerCompose.

The docker-compose.yml is like:

version: \'2\'

ser         


        
1条回答
  •  隐瞒了意图╮
    2021-01-26 13:16

    As suggested by spencergibb here, and as the official documentation suggests, create a bootstrap.yml file:

    spring:
      cloud:
        enabled: true
        config:
          uri: http://config-server:8888
          failFast: true
          retry:
            maxAttempts: 20
    

    and remove the above included properties from application.yml.

    0 讨论(0)
提交回复
热议问题