This is a docker image, which includes a Compose / Transporter application with a predefined, parametric pipeline definition.
The predefined pipeline migrates the current state of a MongoDB database into Elasticsearch, and then continues with syncing the changes too.
+---------+ +-------------+ +---------------+
| mongodb |---->| transporter |---->| elasticsearch |
+---------+ +-------------+ +---------------+
See also the mongo-bi project as an example, how to use this image.
The configuration parameters for build:
TRANSPORTER_VERSION
: The version of the transporter to use. Default is0.5.2
.TRANSPORTER_PLATFORM
: The platform the transporter was built. Default islinux-amd64
.
See also the transporter releases for further details on versions and platforms.
Build the image with the default configuration:
docker build -t quadric/compose-transporter-docker:0.5.2 .
Build the image with different versions and/or platforms:
export TRANSPORTER_VERSION=<version>
export TRANSPORTER_VERSION=<platform>
docker build -t quadric/compose-transporter-docker:${TRANSPORTER_VERSION} .
The configuration parameters for run:
DB_NAME
: The name of the database to transport from MongoDb to ES. It is also the name of the index will be created on ES. Default:test
.MONGODB_URI
: The full URI of the MongoDb server, including credentials, if there is any. Use one of the following formats:mongodb://<user>:password@host:port
ormongodb://host:port
. Default:mongodb://localhost:27017
.ELASTICSEARCH_URI
: The full URI of the Elasticsearch server, including credentials if there is any. Use one of the following formats:http://<user>:password@host:port
orhttp://host:port
. Default:http://localhost:9200
.
docker run -it --rm tombenke/mongo-to-es-transporter:latest