Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorenz/docker-elasticsearch
ElasticSearch in Docker with all the versions
https://github.com/lorenz/docker-elasticsearch
Last synced: about 24 hours ago
JSON representation
ElasticSearch in Docker with all the versions
- Host: GitHub
- URL: https://github.com/lorenz/docker-elasticsearch
- Owner: lorenz
- License: mit
- Created: 2014-12-01T20:51:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-20T02:15:09.000Z (about 10 years ago)
- Last Synced: 2024-05-19T10:00:50.474Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ElasticSeach Container
====================This is a full-fledged ElasticSearch image which has the latest patch version for every minor release of ElasticSearch since 1.0 available.
### Installing
docker pull lorenz/elasticsearch:1.4Versions available: `1.0`, `1.1`, `1.2`, `1.3`, `1.4`
### Configuration
You can either provide your own configuration at `/app/config/elasticsearch.yml` or use the following environment variables:* `CLUSTER_NAME` specifies the name of the cluster. Defaults to `elasticsearch`.
* `NODE_DATA` specifies if the node is allowed to hold data. Defaults to `true`.
* `NODE_MASTER` specifies if the node is allowed to be a master. Defaults to `true`.
* `NUM_SHARDS` specifies the number of shards. Defaults to `5`.### Volumes
To persist the data, the image has a volume at `/data` defined. You can either attach that to a data container or bind it to a host directory.### Examples
Development instance:docker run -e CLUSTER_NAME=dev -v /home/lorenz/volumes/elasticsearch-dev:/data --rm lorenz/elasticsearch:1.4
Production cluster:
docker run -d -e CLUSTER_NAME=prod1 -e NODE_DATA=false -e NUM_SHARDS=10 -v /mnt/ssd1/elasticsearch1:/data lorenz/elasticsearch:1.4
docker run -d -e CLUSTER_NAME=prod1 -e NODE_DATA=true -e NODE_MASTER=false -e NUM_SHARDS=10 -v /mnt/ssd1/elasticsearch1:/data lorenz/elasticsearch:1.4
docker run -d -e CLUSTER_NAME=prod1 -e NODE_DATA=true -e NODE_MASTER=false -e NUM_SHARDS=10 -v /mnt/ssd1/elasticsearch1:/data lorenz/elasticsearch:1.4