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.
- 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)
-
Run
docker-compose
to bring up the three-node Elasticsearch cluster:$ docker-compose up
-
Submit a
_cat/nodes
request to see that the nodes are up and running:curl -X GET "localhost:9200/_cat/nodes?v&pretty"
-
Open Kibana to load sample data and interact with the cluster: http://localhost:5601
-
Tear down containers and volumens when you are done:
$ docker-compose down -v