Public Repository

Last pushed: a year ago
Short Description
Image for Mongo2ES: a sync engine for replication between MongoDB and Elasticsearch
Full Description
Setup:

Important: Make sure to modify the watcher.js script to suit your application

  1. Clone down the following repo:
    git@github.com:markmester/mongo2es-fork.git
  2. Mody the watcher.js file to suit your needs (i.e. watch specific collections, add transformers, etc.)
  3. Build the image:
    Cd into the cloned repo and run
    docker build -t <username>/mongo2es .
    
  4. Run the image:
    docker run --name mongo2es -d \
    -e ROOT_URL=http://localhost:3001 \
    -e MONGO_URL="mongodb://127.0.0.1:27017/dbname?replicaSet=rs" \
    -e MONGO_OPLOG_URL=mongodb://127.0.0.1:27017/local \
    -e elasticsearchHost="http://127.0.0.1:9200" \
    -p 3001:80 \
    <username>/mongo2es
    
    **make sure to explicitly set the IP of the box the container is running on if host mapping is not set up
Docker Pull Command
Owner
markmester

Comments (0)