Giter Site home page Giter Site logo

docker-elasticsearch's Introduction

Docker Elasticsearch

This repository contains the configuration for building a Elasticsearch Docker image using Ubuntu 14.04 LTS. This particular Docker image

  • has a reasonable default Elasticsearch configuration;
  • makes it easy to override those defaults;
  • makes it easy to persist your data across container restarts;

Building the image

Clone the repository

git clone https://github.com/pitrho/docker-elasticsearch.git
cd docker-elasticsearch
./build

De default tag for the new image is pitrho/elasticsearch. If you want to specify a different tag, pass the -t flag along with the tag name:

./build -t new/tag

Be default, the image installs version 1.7.2. If you want to install a different version, pass the -v flag along with the version name:

./build -v 1.7.1

Example usage

Basic usage

Start the image using the default configuration:

docker run -d -p 27017:27017 pitrho/elasticsearch

Passing extra configuration to start Elasticsearch

To pass additional settings to elasticsearch, you can use environment variable EXTRA_OPTS.

docker run -d -p 27017:27017 -e EXTRA_OPTS="--other-options-here" pitrho/elasticsearch

Volumes

This image does not enforce any volumes on the user. Instead, it is up to the user to decide how to create any volumes to store the data. Docker has several ways to do this. More information can be found in the Docker user guide.

Note that the default path where the data is stored inside the container is at /var/lib/elasticsearch. You can mount a volume at this location to create external backups.

Logs

By default, logs are stored at /var/logs/elasticsearch and they are automatically rotated and printed to stdout.

License

MIT. See the LICENSE file.

Contributors

docker-elasticsearch's People

Contributors

alejom99 avatar

Stargazers

Joel Moxley  avatar

Watchers

Kyle L. Jensen avatar Joel Moxley  avatar Gilman Callsen avatar James Cloos avatar Erik Allen avatar Anthony Alves avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.