trantect elasticsearch docker image
1.3K
This repository contains Dockerfile of Elasticsearch for Docker's automated build published to the public Docker Hub Registry.
Install Docker.
Download automated build from public Docker Hub Registry: docker pull trantect/docker-elasticsearch
(alternatively, you can build an image from Dockerfile: docker build -t="yours/docker-elasticsearch" github.com/Trantect/docker-elasticsearch)
docker run -d -p 9200:9200 -p 9300:9300 yours/docker-elasticsearch
Create a mountable data directory <data-dir> on the host.
Create Elasticsearch config file at <data-dir>/elasticsearch.yml.
```yml
path:
logs: /data/log
data: /data/data
```
3. 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 yours/docker-elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
```
After few seconds, open http://<host>:9200 to see the result.
Content type
Image
Digest
Size
78.1 MB
Last updated
almost 11 years ago
docker pull trantect/docker-elasticsearch:1.4.4-1