Public | Automated Build

Last pushed: 2 years ago
Short Description
puts every item on a rabbitmq queue into a mongodb collection, converts into json on demand
Full Description

rabbitmq-mongodb

A lightweigth docker container (55MB in size) which will automatically stream new items from a RabbitMQ queue RABBITMQ_QUEUE_NAME into a MongoDB collection MONGODB_COLLECTION with the help of nodejs' amqp-to-mongo. This is the source for building the docker image marcelmaatkamp/rabbitmq-mongodb

Usage

To stream the queue amqp://RABBITMQ_HOSTNAME/RABBITMQ_QUEUE_NAME into mongodb://MONGODB_HOSTNAME/MONGODB_DATABASE/MONGODB_COLLECTION use:

$ docker run -d \
  --restart=always \
  --name rabbitmq-mongodb \
  -e AMQPHOST=amqp://<RABBITMQ_HOSTNAME> \
  -e MONGODB=mongodb://<MONGODB_HOSTNAME>/<MONGODB_DATABASE> \
  -e MONGOCOLLECTION=<MONGODB_COLLECTION> \
  -e TRANSLATECONTENT=true \
  marcelmaatkamp/rabbitmq-mongodb <RABBITMQ_QUEUE_NAME>
Docker Pull Command
Owner
marcelmaatkamp

Comments (0)