Public | Automated Build

Last pushed: 2 years ago
Short Description
Elasticsearch Rednut Edition
Full Description

ElasticSearch Dockerfile

docker pull rednut/elasticsearch:latest

Base Docker Image

Usage

docker run -d -p 9200:9200 -p 9300:9300 dockerfile/elasticsearch

Attach persistent/shared directories

  1. Create a mountable data directory <data-dir> on the host.

  2. Create ElasticSearch config file at <data-dir>/elasticsearch.yml.

    path:
     logs: /data/log
     data: /data/data
    
  3. 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 dockerfile/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
    

After few seconds, open http://<host>:9200 to see the result.

Docker Pull Command
Owner
rednut
Source Repository

Comments (0)