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.
Add to your project
Section titled “Add to your project”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-urlMongoDB reference
Section titled “MongoDB reference”What MongoDB defines in a deployment.
Environment variables
Section titled “Environment variables”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 |
Readme
Section titled “Readme”Uses the official mongo Docker image.