> For the complete documentation index, see [llms.txt](https://docs.sorry-cypress.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sorry-cypress.dev/configuration/mongodb-configuration.md).

# MongoDB Configuration

`MONGODB_URI="mongodb://mongo:27017"`

MongoDB connection URL, required if using "mongo" execution driver.

`MONGODB_DATABASE="sorry-cypress"`

MongoDB database name, required if using "mongo" execution driver.

`MONGODB_TLS`

TLS connection settings, settings to `true` will enable TLS for MongoDB connection

`MONGODB_AUTH_MECHANISM`

MongoDB authentication mechanism. See [MongoDB Authentication](https://mongodb.github.io/node-mongodb-native/3.0/tutorials/connect/authenticating/).

`MONGODB_USER`

MongoDB authentication user, when `MONGODB_AUTH_MECHANISM` is non-empty

`MONGODB_PASSWORD`

MongoDB authentication `password`, when `MONGODB_AUTH_MECHANISM` is non-empty

\`\`
