Skip to content

jcchac/elasticsearch-on-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Elasticsearch on Docker

Source: https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html

This repository contains a docker-compose.yml file to bring up a three-node Elasticsearch cluster and Kibana.

Pre-requisites

  • Install Docker and Docker Compose
  • Make sure Docker Engine is allotted at least 4GiB of memory. In Docker Desktop, you can configure resource usage on the Advance tob in Preference (macOS) or Settings (Windows)

Usage

  1. Run docker-compose to bring up the three-node Elasticsearch cluster:

    $ docker-compose up
  2. Submit a _cat/nodes request to see that the nodes are up and running:

    curl -X GET "localhost:9200/_cat/nodes?v&pretty"
  3. Open Kibana to load sample data and interact with the cluster: http://localhost:5601

  4. Tear down containers and volumens when you are done:

    $ docker-compose down -v

About

Elasticsearch local cluster (and Kibana) on Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published