Apollo

docker-compose 部署

Config Server

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
eureka:
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: 60

endpoints:
health:
sensitive: false

management:
security:
enabled: false
health:
status:
order: DOWN, OUT_OF_SERVICE, UNKNOWN, UP