Public Repository

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

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

  1. Clone down the following repo:
  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://" \
    -e MONGO_OPLOG_URL=mongodb:// \
    -e elasticsearchHost="" \
    -p 3001:80 \
    **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