- Manage three node Elasticsearch + Kibana in docker on local machines.
- Exists as docker-compose to make multi-node easier .
- Guide: https://www.elastic.co/guide/en/elastic-stack-get-started/master/get-started-docker.html
Drawn with: https://www.draw.io/?mode=github Todo: Redraw this using mermaid.js
- Copy
.env.template
to.env
and update with your property values - Run
docker-compose up
- Creates named volumes to persist across restarts. You have to remove the named volume to restore to original
- Kibana web UI is on http://localhost:5601
- Installs analysis-icu and analysis-phonetic on startup and not in a Dockerfile. This implies Internet access.
See README.md in the root of this repo for interesting docker commands.
No IDE integrations specific to this project are called out at this time.
You may see this when running Docker in WSL/WSL2 on Microsoft Windows
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
You can probably fix this in the kernel config in the WSL linux VM. I haven't done that
A bute force fix is edit the wsl config files for all of WSL (.wslconfig). This configures all the VMs that wsl instances run. Alternatively, you can change the setting for just the WSL Docker VM (wsl.conf file).
- Create a
.wslconfig
file in%userprofile%
probablyC:\Users\<UserName>\.wslconfig.
- Put this code in the
.wslconfig
file and save the file
wsl -d docker-desktop
sudo sysctl -w vm.max_map_count=262144
- Shutdown wsl and restart docker desktop
wsl --shutdown
You can put add a section to /etc/wsl.conf
in just the docker VM. I haven't done this so check the docs
This temporary alternative works but needs to run every time you restart Docker. Run this from powershell on the Windows host.
wsl -d docker-desktop sysctl -w vm.max_map_count=262144
Discussions of this issue can be found here