Deploy MongoDB


MongoDB is a popular, scalable, NoSQL database used by millions of developers. You can run your own MongoDB instance as a private service on Render backed by SSD disks which have automatic snapshots.

We’ll be deploying MongoDB using the latest official Docker image and the Render MongoDB repository to install MongoDB with a single click.


Click the button below to install MongoDB on Render.

Deploy to Render

Manual Deployment

  1. Create a new Private Service on Render and enter https://github.com/render-examples/mongodb in the repository search box. You can also fork the repository on GitHub or click Use this template.
  2. Pick Docker for the Environment.
  3. The master branch uses the latest stable version of MongoDB. You can pick a different branch if you’d like to use a specific MongoDB version.
  4. Under Advanced, add a disk with the following values:

    Namedb
    Mount Path/data/db
    Size10 GB Feel free to change this to suit your needs.

You’re all set! Save your private service, and your MongoDB instance should be up in a few minutes. You should be able to connect to it using the host:port displayed in the dashboard. It should look like mongo-xyz:27017.


You can use the shell in your dashboard to connect to your database.

$ mongo --host mongo-xyz

MongoDB Shell on Render