Databases

Add MongoDB to your application

Add MongoDB to your application

To add a MongoDB instance to your application:

  1. Open the Application Overview from the Dashboard.
  2. Click the Servers tab at the top of the main panel
  3. Click + New Server Type and select MongoDB
  4. A drawer will open from the left, with configuration options for the server.
  5. Click Add Server to start the process

If you need more help, please read our how-to guide on managing databases in Cloud 66.

MongoDB authentication and roles

We support MongoDB authentication by default, and so we will generate a database user and admin user along with passwords.

For the database user, we set the following roles inside MongoDB:

["readWriteAnyDatabase", "dbAdminAnyDatabase"]

For the admin user, we set the following roles inside MongoDB:

["root", { role: "dbAdmin", db: "local" }, { role: "dbAdmin", db: "config" }]

The admin user can only access the database via 127.0.0.1 so it cannot be used via external IP addresses.

Previous
Scaling MongoDB with replica sets