I am using Elasticsearch and docker-compose inside a Jenkins pipeline to run my tests. Both Elasticsearch and the Node.js service seem to start properly from Docker, but performing a health check by hitting the http://elasticsearch:9200/_cat/health?h=st endpoint returns status code 000 from curl.
Running the tests and performing the health check from inside docker on local (macOS with Docker for Mac) working completely fine, but in Jenkins the health checks fail. Here is what my setup (with error log) looks like:
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.