Skip to content

MongoDB

MongoDB is a document database that stores flexible JSON-like records with dynamic schemas. Use this add-on when your application benefits from schema-less data modeling or rapid iteration.

Paste this entry into the addons list in diploi.yaml to add MongoDB to your project.

addons:
- name: MongoDB
identifier: mongo
package: https://github.com/diploi/addon-mongo#v8.2.3-url

What MongoDB defines in a deployment.

MongoDB sets these values in every deployment. Components can import them with env.include as mongo.*. Defaults marked generated are unique to each deployment.

Parameters are set on the deployment’s Setup tab.

Connection

Connection configuration.

Variable Type Default Description
DATABASE_URL string generated

Uses the official mongo Docker image.