Cannot contact elasticsearch at localhost:9200 from apache docker container

I have installed logstash and elasticsearch as services on manjaro linux , i’am using logstash to get data from a mairadb container and it works just fine , elasticsearch seems to work perfectly as well , but when i try to contact elasticsearch from my app on the apache container i get this message :
Elasticsearch request failed: 7 - Failed to connect to 127.0.0.1 port 9200: Connection refused
any help would be much appreciated

What are elasticsearch logs? Do you expose the 9200 port?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.