Public Repository

Last pushed: 2 years ago
Short Description
+ ElasticSearch 1.0.0 + MongoDB River Plugin 2.0.0 + Mapper Attachments Type for Elasticsearch 2.0.0 docker run -d -p 9200:9200 -p 9300:9300 --name elasticsearch gusnips/elasticsearch-river-mongodb
Full Description

ElasticSearch + MongoDB River Plugin Dockerfile

This repository contains Dockerfile of ElasticSearch installed with MongoDB River Plugin

Dependencies

It's usually useful to have mongodb running. If you don't have it yet, try the official version

docker run -d -p 27017:27017 --name mongodb dockerfile/mongodb

Installation

Download the image build from public Docker Registry:
docker pull gusnips/elasticsearch-river-mongodb

alternatively, you can build an image from Dockerfile:
docker build -t="gusnips/elasticsearch-river-mongodb" github.com/gusnips/dockerfile/elasticsearch-river-mongodb

Usage

    docker run -d -p 9200:9200 -p 9300:9300 --name elasticsearch gusnips/elasticsearch-river-mongodb

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 127.0.0.1:9200:9200 -p 127.0.0.1:9300:9300  --name elasticsearch -v <data-dir>:/data gusnips/elasticsearch-river-mongodb /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
    

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

Versions

Docker Pull Command
Owner
gusnips