MongoDB on OpenShift

The mongodb cartridge provides MongoDB on OpenShift. MongoDB is a document-oriented NoSQL database, using JSON-style documents with dynamic schemas. With OpenShift you can easily deploy and run applications backed by MongoDB using your favorite servers and frameworks. OpenShift Online currently supports MongoDB 2.4.

The MongoDB Cartridge

Environment Variables

The mongodb cartridge provides several environment variables to reference for ease of use:

Example Use

These two commands create your "server" and install and configure Python, MongoDB, and a git repository on the server. You can now visit your application on the web at:

http://MyApp-MyDomain.rhcloud.com/

RockMongo

The rockmongo cartridge provides RockMongo on OpenShift. In order to add this cartridge to an application, the MongoDB cartridge must already be present. Once installed, RockMongo can be used by navigating to http://app-domain.rhcloud.com/rockmongo with the MongoDB login credentials.