Skip to content

nsantiago2719/dockerize_elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ElasticSearch Dockerfile

ElasticSearch Dockerfile. Also published to public Docker Registry.

Installation

  1. Install Docker

  2. Download image from public Docker Registry:

docker pull dockerize/elasticsearch

or build an image from the Dockerfile:

docker build -t dockerize/elasticsearch github.com/dockerize/elasticsearch

Usage

docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data dockerize/elasticsearch

Attach persistent/shared directories

  1. Create a mountable data directory on the host.

  2. Create ElasticSearch config file at /elasticsearch.yml.

path:
 logs: /data/log
 data: /data/data
  1. Start a container by mounting data directory and specifying the custom configuration file:
docker run -d -p 9200:9200 -p 9300:9300 -v <data-dir>:/data dockerize/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml

After few seconds, open [http:https://localhost:9200] to see the result.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages