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.
The MongoLab dashboard can be accessed by visiting: mongolab.com/login/
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.
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:[email protected]: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 documentation is available at http://docs.mongolab.com/.