We have enabled MongoDB on dokku using this plugin: https://github.com/dokku/dokku-mongo
If you want to know what MongoDB is, and why/how to use it, consult this article first:
The rest of this article will concentrate on how to interact with MongoDB on dokku.