Databases
Add MongoDB to your application
Add MongoDB to your application
To add a MongoDB instance to your application:
- Open the Application Overview from the Dashboard.
- Click the Servers tab at the top of the main panel
- Click + New Server Type and select MongoDB
- A drawer will open from the left, with configuration options for the server.
- 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.