Monday, June 29, 2015

Heroku Friendly Dropwizard Mongo

So for a few weeks now I have been using Dropwizard with MongoDB. Two great technologies however the mongo plugin for Dropwizard was missing a configuration option for the mongo URI which is used by Mongo Lab, a monogdb provider for Heroku.

Dropwizard Mongo being an open I decided to update the version of mongo jackson and add the mongo URI configuration option. The results are in my fork. Which you can pull from my Bintray repo.

Here is an example config yaml:

mongoDB:
    dbName: test
    uri: mongodb://db2.example.net:2500

Happy programming!