Thanks
M
Here is service.properties for sever1 which runs tomcat inside docker on port 9176:
eureka.region=default
eureka.peerNodeConnectTimeoutMs=2000
eureka.peerNodeReadTimeoutMs=2000
eureka.datacenter=MyOwn
eureka.name=server2localservice
eureka.vipAddress=server2local.mydomain.net
eureka.port=8020
eureka.preferSameZone=true
eureka.shouldUseDns=false
eureka.serviceUrl.default=http://<hostip>:9175/eureka/v2/
AND for server2 which runs tomcat inside docker on port 9175:
eureka.region=default
eureka.peerNodeConnectTimeoutMs=2000
eureka.peerNodeReadTimeoutMs=2000
eureka.datacenter=MyOwn
eureka.name=server1localservice
eureka.vipAddress=server1local.mydomain.net
eureka.port=8010
eureka.preferSameZone=true
eureka.shouldUseDns=false
eureka.serviceUrl.default=http://<hostip>:9176/eureka/v2/
Both the servers have client.properties with urls:
eureka.serviceUrl.default=http://<hostip>:9175/eureka/v2/,http://<hostip>:9176/eureka/v2/