This repository contains the Dockerfile ElasticSearch Docker's automated build published to the public Docker Hub Registry and Quay.io.
docker run -d -p 9200:9200 -p 9300:9300 predicsis/elasticsearch
Create a mountable data directory <data-dir> on the host.
Create ElasticSearch config file at <data-dir>/elasticsearch.yml.
```yml
path:
data: /data/data
logs: /data/log
plugins: /data/plugins
work: /data/work
```
3. Start a container by mounting data directory and specifying the custom configuration file:
```sh
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -v <data-dir>:/data predicsis/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
```
After few seconds, open http://<host>:9200 to see the result.
If you want to limit Elasticsearch's HEAP_SIZE, you can use the ES_HEAP_SIZE environment variable:
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 -v <data-dir>:/data -e "ES_HEAP_SIZE=1024m" quay.io/predicsis/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
Content type
Image
Digest
sha256:ecc6d4eb4…
Size
342.4 MB
Last updated
almost 11 years ago
docker pull predicsis/elasticsearch