forked from ArtGeekTech/health-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.txt
39 lines (35 loc) · 877 Bytes
/
setup.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
---
spring:
profiles: serviceregistry1
server:
port: 8761
eureka:
instance:
hostname: serviceregistry1
client:
serviceUrl:
defaultZone: http://serviceregistry2:8762/eureka/,http://serviceregistry3:8763/eureka/ # 将自己注册到peer2这个Eureka上面去
---
spring:
profiles: serviceregistry2
server:
port: 8762
eureka:
instance:
hostname: serviceregistry2
client:
serviceUrl:
defaultZone: http://serviceregistry1:8761/eureka/,http://serviceregistry3:8763/eureka/
---
spring:
profiles: serviceregistry3
server:
port: 8763
eureka:
instance:
hostname: serviceregistry3
client:
serviceUrl:
defaultZone: http://serviceregistry1:8761/eureka/,http://serviceregistry2:8762/eureka/
# IoT Microservices Local Hosts
127.0.0.1 serviceregistry1 serviceregistry2 serviceregistry3 serviceregistry service-registry