I'm using Docker Compose to run Elasticsearch Single Node on Docker with Kibana. I reviewed my files several times and no luck so far.
I'm getting "Unable to revive connection: http://elasticsearch:9200/" message. I tried to declare same network for both containers but I got the same error. When I tried to ping from kibana to elasticsearch container, it responds. Unfortunetely Kibana container doesn't have curl or telnet or even wget to test http://elasticsearch:9200
This is my docker-compose.yaml file:
version: '3.7' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2 container_name: elasticsearch environment: - cluster.name=docker-cluster - discovery.type=single-node ulimits: memlock: soft: -1 hard: -1 nofile: soft: 65536 hard: 65536 cap_add: - IPC_LOCK volumes: - esdata:/usr/share/elasticsearch/data ports: - 9200:9200 - 9300:9300 kibana: image: docker.elastic.co/kibana/kibana:6.3.2 container_name: kibana environment: - ELASTICSEARCH_HOSTS=http://elasticsearch:9200 ports: - 5601:5601 depends_on: - elasticsearch volumes: esdata: driver: local