Sign inSign up

mcuadros/docker-mongo-connector

By mcuadros

Updated over 10 years ago

fork of https://github.com/weflex/docker-mongo-connector

Image
0

1.3K

mcuadros/docker-mongo-connector repository overview

docker-mongo-connector

Docker image for the mongodb-labs/mongo-connector.

Tags

What is docker-mongo-connector?

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

Usage

There are 2 ways to use this docker

In Dockerfile
FROM weflex/mongo-connector:latest

By default, the running container will connect:

  • mongo specified by $MONGO (default: mongo), $MONGO_PORT (27017), $MONGO_USERNAME and $MONGO_PASSWORD
  • elasticsearch specified by the host $ELASTICSEARCH (default: elasticsearch) and $ELASTICSEARCH_PORT (9200)

Or directly run:

$ docker run -d --env=MONGO=localhost --link=elasticsearch:elasticsearch weflex/mongo-connector
In docker-compose.yml
elasticsearch:
  image: elasticsearch:latest
  command: elasticsearch -Des.network.host=0.0.0.0
mongo_connector:
  image: weflex/mongo-connector:latest
  links:
    - elasticsearch:elasticsearch
  environment:
    - MONGO=endpoint
    - MONGO_USERNAME=user
    - MONGO_PASSWORD=pass

What has been changed

  • config the timezone to Asia/Shanghai.
  • install mongo-connector:2.1

Thanks

This repository is inspired by yeasy/docker-mongo-connector, Thanks to @yeasy to create the upstream one.

License

MIT

Tag summary

Content type

Image

Digest

Size

263.6 MB

Last updated

over 10 years ago

docker pull mcuadros/docker-mongo-connector