ElasticHQ / elasticsearch-HQ

Monitoring and Management Web Application for ElasticSearch instances and clusters.
http://www.elastichq.org
Other
4.96k stars 532 forks source link

Cluster Connection Failed #419

Closed altafsayani closed 5 years ago

altafsayani commented 6 years ago

I am trying to setup elasticsearch with elasticsearch hq using docker compose. But when I try to connect to my elasticsearch server using elasticsearch hq it showing "Cluster connection failed! Check server log if problem persist" error.

Here is my docker-compose.yml file

version: '3.1'

services:
  elasticsearch:
    image: elasticsearch
    container_name: elasticsearch_server
    environment:
      - cluster.name=docker-cluster
      - bootstrap.memory_lock=true
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200
    volumes:
      - ./db:/usr/share/elasticsearch/data
  elasticsearch_hq:
    image: elastichq/elasticsearch-hq
    container_name: elasticsearch_hq
    environment:
      - "HQ_DEFAULT_URL=http://localhost:9200"
    ports:
      - 5000:5000
sentient commented 5 years ago

put the services on the same (bridged) network and set - "HQ_DEFAULT_URL=http://localhost:9200" to