Provide overridable default memory setting
This commit is contained in:
parent
f92eef4cdf
commit
29495fb84b
|
@ -13,6 +13,7 @@ RUN apt-get update ;\
|
|||
curl -o /tmp/elasticsearch.deb "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.3.1.deb" ;\
|
||||
dpkg -i /tmp/elasticsearch.deb ;\
|
||||
rm /tmp/elasticsearch.deb ;\
|
||||
sed -i -E 's/(\-Xm.[0-9]g)/#\1/' /etc/elasticsearch/jvm.options ;\
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ADD elasticsearch.conf /etc/supervisor/conf.d/elasticsearch.conf
|
||||
|
|
|
@ -15,3 +15,4 @@ Note: you'll need to increase vm.max_map_count; Elasticsearch will demand it. Ei
|
|||
|
||||
* 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"
|
||||
|
|
Loading…
Reference in New Issue