This is a repo achieves three things -
-
A preconfigured elasticsearch.yml
In this config file we disable nmap as Elasticsearch requires
vm.max_map_countto be set to262144when the default is65530.This is needed because changing
vm.max_map_countWould not be possible on most cloud hosted providers. -
Chmod's the /esdata directory with the
elasticsearchuser.The volumes are mounted as root but elasticsearch is ran as non-root.
This is needed because elasticsearch needs to write to the volume.
-
Add an anonymous user that is able to perform a healthcheck to make sure the service is running