Public | Automated Build

Last pushed: 2 years ago
Short Description
fork of https://github.com/weflex/docker-mongo-connector
Full Description

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

Docker Pull Command
Owner
mcuadros
Source Repository