Member-only story

How to run a local Elasticsearch using Docker (in under 5 min)?

D
3 min readAug 7, 2024
Photo by Roberto Sorin on Unsplash

Check out this link if you would like to read this for free.

Elasticsearch is a document based database that boasts excellent search speeds. Let’s set it up. There are a few ingredients in order to use elasticsearch accordingly. These include

  • Networks
  • Services — Elastic and Kibana

A full guide on this subject matter is available from the official elasticsearch documentation.

Create a network

docker network create elastic

Create an elastic service

docker run --name es01 --net elastic -p 9200:9200 -it -m 1GB docker.elastic.co/elasticsearch/elasticsearch:8.14.3

Get password



━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Elasticsearch security features have been automatically configured!
✅ Authentication is enabled and cluster connections are encrypted.

ℹ️ Password for the elastic user (reset with `bin/elasticsearch-reset-password -u elastic`):
fY=VNDEBfDe9Y=I_u+5J

ℹ️ HTTP CA certificate SHA-256 fingerprint:
9f9219ad6783c82b67f5d680344ec001b3f58fe653219c77801bf08103045313

ℹ️ Configure Kibana to use this cluster:
• Run Kibana and…

--

--

D
D

Written by D

An aspiring Robotics Researcher. I am currently in my 4th year of undergraduate studies. I am working on optimising the ROS navigation packages. Follow 4 more!

No responses yet