Sign inSign up

predicsis/elasticsearch

By predicsis

•Updated almost 11 years ago

Image
0

1.3K

predicsis/elasticsearch repository overview

⁠ElasticSearch

Docker Repository on Quay.io

⁠ElasticSearch Dockerfile

This repository contains the Dockerfile ElasticSearch⁠ Docker⁠'s automated build⁠ published to the public Docker Hub Registry⁠ and Quay.io⁠.

⁠Base Docker Image
⁠Usage
docker run -d -p 9200:9200 -p 9300:9300 predicsis/elasticsearch
⁠Attach persistent/shared directories
  1. Create a mountable data directory <data-dir> on the host.

  2. 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.

⁠Settings

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

Tag summary

Content type

Image

Digest

sha256:ecc6d4eb4…

Size

342.4 MB

Last updated

almost 11 years ago

docker pull predicsis/elasticsearch