A Dockerfile that produces a Docker Image for Elasticsearch.
master branch currently hosts Elasticsearch 1.3.
Different versions of Elasticsearch are located at the github repo branches.
Build the image
To create the image
frodenas/elasticsearch, execute the following command on the
$ docker build -t frodenas/elasticsearch .
Run the image
To run the image and bind to host ports 9200 and 9300:
$ docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300 frodenas/elasticsearch
The Elasticsearch server is configured to store data in the
/data directory inside the container. You can map the
/data volume to a volume on the host so the data becomes independent of the running container:
$ mkdir -p /tmp/elasticsearch $ docker run -d \ --name elasticsearch \ -p 9200:9200 -p 9300:9300 \ -v /tmp/elasticsearch:/data \ frodenas/elasticsearch
There are also additional volumes at:
/logswhich exposes Elasticsearch's logs
Copyright (c) 2014 Ferran Rodenas. See LICENSE for details.