Apollo 发表于 2018-01-16 | 分类于 Server , Spring Boot , Apollo docker-compose 部署Config Server123456789101112131415161718192021222324252627eureka: instance: hostname: ${hostname:localhost} preferIpAddress: true ip-address: 35.187.226.72 // 格外添加这一行,在Eurake注册时,使用外网IP // 这个地址影响到client访问配置中心获取配置信息 // 如果不设置这个注册地址,SpringBoot通过外网地址去读取配置中心的信息 server: peerEurekaNodesUpdateIntervalMs: 60000 enableSelfPreservation: false client: serviceUrl: defaultZone: http://${eureka.instance.hostname}:8080/eureka/ healthcheck: enabled: true eurekaServiceUrlPollIntervalSeconds: 60endpoints: health: sensitive: falsemanagement: security: enabled: false health: status: order: DOWN, OUT_OF_SERVICE, UNKNOWN, UP