Sign inSign up

mgebundy/docker-mongo-connector

By mgebundy

•Updated almost 10 years ago

Connect mongo to Elasticsearch 5 with mongo-connector

Image
0

100K+

mgebundy/docker-mongo-connector repository overview

⁠Mongo Connector (Elasticsearch 5)

Docker images for the mongo-connector.

Based on yeasy/docker-mongo-connector⁠.

⁠What is docker-mongo-connector?

Docker image with mongo-connector installed. The image is built based on Python 3.5.2⁠.

⁠How to use this image?

The docker image is auto built at https://registry.hub.docker.com/u/mgebundy/docker-mongo-connector/⁠.

⁠In Dockerfile

FROM mgebundy/mongo-connector:latest

⁠Local Run

By default, it will connect mongo node ($MONGO or the mongo host, on port $MONGOPORT or 27017) and elasticsearch node ($ELASTICSEARCH or the elasticsearch host, on port $ELASTICPORT or 9200).

Boot two containers with name mongo (config to cluster) and elasticsearch. Make sure they're in the same Docker network.

$ docker run -d mgebundy/docker-mongo-connector

It will connect the two containers together to sync data between each other.

⁠Which image is based on?

The image is based on official python:3.5.2.

⁠What has been changed?

⁠Config TZ

Config timezone to Asia/Shanghai.

⁠Install mongo-connector

Install the mongo-connector[elastic5]

Tag summary

Content type

Image

Digest

Size

256.5 MB

Last updated

almost 10 years ago

docker pull mgebundy/docker-mongo-connector