diff --git a/README.md b/README.md index 006769d..fff7dae 100644 --- a/README.md +++ b/README.md @@ -128,12 +128,14 @@ If you're running OpenShift on a local machine, you can preview the new app by s #### Create a new app from an image (method 3) -You may have noticed the home page "Page view count" reads "No database configured". Let's fix that by adding a MongoDB service: +You may have noticed the home page "Page view count" reads "No database configured". Let's fix that by adding a MongoDB service. We could use the second OpenShift template example (`nodejs-mongodb.json`) but for the sake of demonstration let's point `oc new-app` at a DockerHub image: $ oc new-app centos/mongodb-26-centos7 \ $ -e MONGODB_USER=admin,MONGODB_DATABASE=mongo_db,MONGODB_PASSWORD=secret,MONGODB_ADMIN_PASSWORD=super-secret + +The `-e` flag sets the environment variables we want used in the configuration of our new app. -Running `oc status` will reveal the address of the newly created MongoDB database: +Running `oc status` will reveal the address of the newly created MongoDB: In project nodejs (nodejs-echo) on server https://10.2.2.2:8443