Skip to content

Latest commit

 

History

History
 
 

11-mongodb-document-database

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

11 - MongoDB document database

As an alternative to the postgres and redis datastores, there is also a mongodb resource provisioner as an example of a document database. This uses the official image from https://hub.docker.com/_/mongo.

resources:
  db:
    type: mongodb

The provided outputs are host, port, username, password, connection. The latter is equal to a mongodb connection string like mongodb://${resources.db.username}:${resources.db.password}@${resources.db.host}:${resources.db.port}/}.