Sign inSign up

markmester/mongo2es

By markmester

•Updated almost 10 years ago

Image for Mongo2ES: a sync engine for replication between MongoDB and Elasticsearch

Image
0

218

markmester/mongo2es repository overview

⁠Setup:

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

  1. Clone down the following repo: [email protected]⁠: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 .
  1. 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

Tag summary

Content type

Image

Digest

Size

-

Last updated

almost 10 years ago

docker pull markmester/mongo2es