I have a problem.
How to deploy microservices in different Tomcat containers and make them communicate?
In IDE, project is working properly but as soon as I deploy the war files into the container, the Eureka clients does not get registered to the Eureka Server.
I have almost tried every possible ways with the applications.properties of the Client and Eureka Server.
The File of application.properties of one of the Eureka Client is given below:-
Here, I have tried my-ip, 127.0.0.1, localhost…
But in the IDE it works and no in the tomcat local server.
spring.application.name=auth-service
server.port=8001
eureka.client.service-url.default-zone=http://my-ip:8761/eureka
#eureka.client.service-url.default-zone=http://my-ip:8761/Eureka/
eureka.instance.hostname=my-ip
eureka.instance.prefer-ip-address=true
ldap.enabled = true
Anyone?
Thanks!