I have used elastic search(rest high level client) in spring boot. The local instance of my computer running fine. But, when I am trying to access the azure vm docker instance I can't able to use. I can able to get json file when hitting ideas.cloudapp.azure.com(let say the host name) ideas.cloudapp.azure.com:9200. And I am using mentioed cluster name in that json in my spring boot application
spring.data.elasticsearch.cluster-name = docker-cluster
And I set the
spring.data.elasticsearch.cluster-nodes = ideas.cloudapp.azure.com:9300
In docker I have 2 port running 9200 and 9300 having same port for outside container
And I ran my program which was giving error. Then I opened my laptop's localhost instance and kept the cluster node sam and it ran but was not storing in docker instance. Later, found out it is uisng laptop's local instance, then I gave random cluster-nodes. For which also it toop laptop's local instance
And, in docker logs for es container there is no log of connected, index created, delted, or data inserted nothing.
And when I turned off local instance of laptop and ran. Still it is pointing to local instance
Caused by: java.net.ConnectException: Timeout connecting to [localhost/127.0.0.1:9200]
I tried debugging but when it went out of spring boot to elastic search files, it showed "source file not found". So, I can't able to debug properly
What to do?