datahub/docker/elasticsearch

Elasticsearch & Kibana

Data Hub uses Elasticsearch as a search engine. Elasticsearch powers search, typeahead and browse functions for Data Hub. Official Elasticsearch Docker image found in Docker Hub is used without any modification.

Run Docker container

Below command will start the Elasticsearch and Kibana containers. Data Hub uses Elasticsearch release 5.6.8. Newer versions of Elasticsearch are not tested and you might experience compatibility issues.

cd docker/elasticsearch && docker-compose pull && docker-compose up

After containers are initialized, we need to create the dataset and users search indices by running below command:

cd docker/elasticsearch && bash init.sh

You can connect to Kibana on your web browser to monitor Elasticsearch via below link:

http://localhost:5601

Container configuration

External Port

If you need to configure default configurations for your container such as the exposed port, you will do that in docker-compose.yml file. Refer to this link to understand how to change your exposed port settings.

ports:
  - "9200:9200"

Docker Network

All Docker containers for Data Hub are supposed to be on the same Docker network which is datahub_network. If you change this, you will need to change this for all other Docker containers as well.

networks:
  default:
    name: datahub_network