Elasticsearch in a container
Go to file
dave 7536cb33af bump es to 6.3 2018-08-18 16:46:17 -07:00
.dockerignore bump es to 6.3 2018-08-18 16:46:17 -07:00
Dockerfile bump es to 6.3 2018-08-18 16:46:17 -07:00
README.md bump es to 6.3 2018-08-18 16:46:17 -07:00
get_oracle_jdk_linux_x64.sh bump es to 6.3 2018-08-18 16:46:17 -07:00
start bump es to 6.3 2018-08-18 16:46:17 -07:00

README.md

docker-elasticsearch

The latest Elasticsearch for docker, currently 6.3.2.

Usage:

  • Build: docker build -t elasticsearch .
  • Run: docker run -d -v /data/elastic:/var/lib/elasticsearch -p 9300:9300 -p 9200:9200 elasticsearch

Note: you'll need to increase vm.max_map_count; Elasticsearch will demand it. Either add --sysctl vm.max_map_count=262144 to the docker run command or use sysctl -w vm.max_map_count=262144.

Notes:

  • Override default config file: -v /data/myconfig.yml:/etc/elasticsearch/elasticsearch.yml
  • Data is stored in /var/lib/elasticsearch
  • Set memory limit like so: `-e "ES_JAVA_OPTS=-Xms8G -Xmx8G"