Dockerized two-nodes Elasticsearch cluster with Kibana and the following plugins installed:
- analysis-icu
- analysis-stempel
- pl.allegro.tech.elasticsearch.plugin:elasticsearch-analysis-morfologik
- ingest-attachment
-
Build custom Elasticsearch image (with listed plugins installed):
docker build -f elasticsearch-with-plugins -t training-es:8.13.3 .
-
Setup docker-machine by increasing limits on mmap counts corresponding to https://elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html \
-
For Windows users running Docker on WSL2 requires increasing mmap counts (after every Docker/WSL2 reboot)
wsl -d docker-desktop sysctl -w vm.max_map_count=262144
-
For MacOS with Colima it can be done permanently:
colima start --edit
Replace default configuration for
provision
element withprovision: - mode: system script: sysctl -w vm.max_map_count=262144
-
-
Start cluster using this command:
docker-compose up
-
Open http://localhost:5601 in your favourite browser and start using Kibana ;-)