Member-only story
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…