Skip to content

guerremdq/docker-elasticsearch-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

docker-elasticseach-image

extends the official elasticsearch image by adding the Image plugin.

Dependencies

Installation

  1. Install Docker.

  2. Download build from public Docker Registry: docker pull guerremdq/elasticsearch-image

    (alternatively, you can build an image from Dockerfile: docker build -t="guerremdq/elasticsearch-image" github.com/guerremdq/elasticsearch-image)

Usage

    docker run -d -p 9200:9200 -p 9300:9300 guerremdq/elasticsearch-image

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:
  logs: /data/log
  data: /data/data
```
  1. Start a container by mounting data directory and specifying the custom configuration file:
```sh
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data guerremdq/elasticsearch-image /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
```

After few seconds, open http://<host>:9200 to see the result.

Documentation

About

extends the official elasticsearch image by adding the Image plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages