Deploy MongoDB

CloudStation offers a Standalone MongoDB Instance to accommodate different project needs.

  • Standalone Instance - A single MongoDB database server that is easy to manage; ideal for development environments, smaller projects, or services that are less sensitive to disruption.

Standalone MongoDB

Learn how to deploy, connect, and manage the standalone MongoDB instance.

Deploy

You can deploy a standalone MongoDB database by clicking the Add New button on the Project dashboard.

You can also deploy it via the template from the template marketplace.

Deployed Service

Once deployed, your standalone MongoDB service runs within your project, using the official mongo Docker image.

Custom Start Command

The MongoDB service starts with the following Start Command to enable communication over the Private Network:

mongod --ipv6 --bind_ip ::,0.0.0.0

Connect

You can connect to MongoDB from another service in your project by referencing the environment variables provided in the Mongo service:

  • MONGOHOST
  • MONGOPORT
  • MONGOUSER
  • MONGOPASSWORD
  • MONGO_URL

Connecting Externally

External connections (from outside your project) can be established using the TCP Proxy, which is enabled by default.

Note: You will be billed for Network Egress when using the TCP Proxy.

Modify the Deployment

Since the deployed container is pulled from the official MongoDB image, you can modify the deployment by following the instructions in Docker Hub.

Additional Resources

While these templates are provided for convenience, they are considered unmanaged, meaning you have full control over their configuration and maintenance. To deepen your understanding, refer to the official MongoDB documentation:


Edit this file on GitHub