You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, within the same docker-compose file, I have another Python app that is connecting to this Elasticsearch, but while trying, it says, Error connecting to Elasticsearch." The Elasticsearch cluster is not reachable.
Below is the way I am using to connect to elasticsearch
but when I am doing
Telnet from another running container to the Elasticsearch container IP it is connecting to.
Am I using the old way of connecting to Elasticsearch, or what am I missing? I have tried with the Elasticsearch host and container IP as well but no luck
Steps to Reproduce
custom app
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered:
Vijaygawate
changed the title
Elastic search container connection issue with python app
Error connecting to Elasticsearch." The Elasticsearch cluster is not reachable from python app in same docker network
Apr 28, 2025
Thanks very much for your interest in Elasticsearch.
This appears to be a user question, and we'd like to direct these kinds of things to the Elasticsearch forum. If you can stop by there, we'd appreciate it. This allows us to use GitHub for verified bug reports, feature requests, and pull requests.
There's an active community in the forum that should be able to help get an answer to your question. As such, I hope you don't mind that I close this.
Elasticsearch Version
8.17
Installed Plugins
No response
Java Version
bundled
OS Version
ubuntu
Problem Description
I am using docker compose to create elasticsearch docker container using below compose file
Now, within the same docker-compose file, I have another Python app that is connecting to this Elasticsearch, but while trying, it says, Error connecting to Elasticsearch." The Elasticsearch cluster is not reachable.
Below is the way I am using to connect to elasticsearch
but when I am doing
Telnet from another running container to the Elasticsearch container IP it is connecting to.
Am I using the old way of connecting to Elasticsearch, or what am I missing? I have tried with the Elasticsearch host and container IP as well but no luck
Steps to Reproduce
custom app
Logs (if relevant)
No response
The text was updated successfully, but these errors were encountered: