diff --git a/microservice-discovery-eureka-ha/src/main/resources/application-easy.yml b/microservice-discovery-eureka-ha/src/main/resources/application-easy.yml new file mode 100644 index 0000000..586b008 --- /dev/null +++ b/microservice-discovery-eureka-ha/src/main/resources/application-easy.yml @@ -0,0 +1,23 @@ +spring: + application: + name: microservice-discovery-eureka-ha +eureka: + client: + serviceUrl: + defaultZone: http://peer2:8762/eureka/,http://peer1:8761/eureka/ +--- +spring: + profiles: peer1 +server: + port: 8761 +eureka: + instance: + hostname: peer1 +--- +spring: + profiles: peer2 +server: + port: 8762 +eureka: + instance: + hostname: peer2 \ No newline at end of file