2017-04-20 21:47:49 -07:00
|
|
|
docker-elasticsearch
|
|
|
|
====================
|
2016-02-27 22:16:21 -08:00
|
|
|
|
2018-08-18 16:46:17 -07:00
|
|
|
The latest [Elasticsearch](https://www.elastic.co/products/elasticsearch) for docker, currently 6.3.2.
|
2016-02-27 22:16:21 -08:00
|
|
|
|
|
|
|
*Usage:*
|
|
|
|
|
|
|
|
* Build: `docker build -t elasticsearch .`
|
|
|
|
* Run: `docker run -d -v /data/elastic:/var/lib/elasticsearch -p 9300:9300 -p 9200:9200 elasticsearch`
|
|
|
|
|
2017-04-20 21:47:49 -07:00
|
|
|
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:*
|
2016-02-27 22:16:21 -08:00
|
|
|
|
|
|
|
* Override default config file: `-v /data/myconfig.yml:/etc/elasticsearch/elasticsearch.yml`
|
2017-04-20 21:47:49 -07:00
|
|
|
* Data is stored in `/var/lib/elasticsearch`
|
2017-04-21 00:36:14 -07:00
|
|
|
* Set memory limit like so: `-e "ES_JAVA_OPTS=-Xms8G -Xmx8G"
|