166 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
When you access the application link http://myapp.apps.domain.example.com, as shown in 
Figure 7-1, notice the index page Page view count reads “No database configured”. To fix this 
issue, add a MongoDB service.
Figure 7-1   http://myapp.apps.domain.example.com without MongoDB
6. Deploy the mongodb-36-rhel7 application from the Red Hat registry, as shown in 
Example 7-6.
Example 7-6   Deploy mongodb application
# oc new-app \
    -e MONGODB_USER=admin \
    -e MONGODB_PASSWORD=secret \
    -e MONGODB_DATABASE=mongo_db\
    -e MONGODB_ADMIN_PASSWORD=super-secret \
    registry.access.redhat.com/rhscl/mongodb-36-rhel7
--> Found Docker image 3414ee2 (4 weeks old) from registry.access.redhat.com for 
"registry.access.redhat.com/rhscl/mongodb-36-rhel7"
    MongoDB 3.6 
    ----------- 
    MongoDB (from humongous) is a free and open-source cross-platform document-oriented 
database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents 
with schemas. This container image contains programs to run mongod server.
    Tags: database, mongodb, rh-mongodb36
    * An image stream tag will be created as "mongodb-36-rhel7:latest" that will track this 
image
    * This image will be deployed in deployment config "mongodb-36-rhel7"
    * Port 27017/tcp will be load balanced by service "mongodb-36-rhel7"
      * Other containers can access this service through the hostname "mongodb-36-rhel7"
    * This image declares volumes and will default to use non-persistent, host-local 
storage.
      You can add persistent volumes later by running 'volume dc/mongodb-36-rhel7 --add 
...'
--> Creating resources ...
    imagestream.image.openshift.io "mongodb-36-rhel7" created