Please note that these documents apply to OpenShift Online v2 only (accounts created before August 1st, 2016).
If you are using one of the OpenShift 3 products, please refer to documents available at docs.openshift.com.

MongoLab

MongoLab is a fully-managed cloud database service featuring highly-available MongoDB databases, automated backups, web-based tools, 24/7 monitoring, and expert support. By hosting MongoDB on MongoLab’s Database-as-a-Service (DBaaS) platform, developers and IT professionals are free to focus their attention on product development instead of operations.

Dashboard

The MongoLab dashboard can be accessed by visiting: mongolab.com/login/

MongoLab Dashboard

Integrating the Service With Your App

Once you have subscribed to this service and located your credentials, you will need to configure your application to use the credentials for your service.

MongoLab Environment Variables

We recommend setting the following environment variables within your application runtime to connect the service to your app:

Variable Name

Example Value

MONGOLAB_URI

mongodb://openshift_i9ae1kej_r5sqcp89_jutnauic:fPQDqehF7iM1HeQpih_xNk8sNKqsZEtK@ds051110.mongolab.com:51740/openshift_i9ae1kej_r5sqcp89

Use the OpenShift client tools to set environment variables to make your credentials available within your application runtime:

$ rhc env set MONGOLAB_URI=VALUE -a App_Name
Check out the general code examples to see how to use envirpnment variables within your application.

Additional Resources

Additional documentation is available at http://docs.mongolab.com/.

Support