My logstash is unresponsive at http://localhost:9200/. As per documentation I should have received a json response at this URL. Kindly suggest where I could be going wrong
Nothing in your compose is about logstash... just elasticsearch and kibana so it is unclear why you are asking about logstash
Your compose is not really valid as Elasticsearch 8.X will setup security automatically which you are not accounting for
You need to decide which way you want to run secured or not secured... it seems that you want to run not secured which you can ... but at your own risk.
You should really look at the official documents about running elasticsearch and kibana with docker compose...
If you want to run Elasticsearch and Kibana with absolutely NO security here is a sample compose... run at your own risk and do not expose to network or internet.
Here is a compose to run with no security
run with
$ TAG=8.12.1 docker-compose -f ./es-kb-no-security-compose.yml up
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.