From 53a510899aa171c2f898c1424673e3bdb9986b39 Mon Sep 17 00:00:00 2001 From: brennv Date: Mon, 4 Apr 2016 14:46:02 -0700 Subject: [PATCH] Adding mongodb service (Hmmm, now restart everything and it automagically works? Or add the mongodb url to the nodejs pod some how?) --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 9f6c5ff..927b304 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,16 @@ As of OpenShift v3.1 routes can be configured in the web console or via CLI. Usi If you're running OpenShift on a local machine, you can preview the new app by setting a local route like: $ oc expose service/nodejs-ex --hostname=10.2.2.2 + +#### database + +You may have noticed the "Page view count" reads "No database configured". Let's fix that by adding a MongoDB pod: + + $ oc new-app -e \ + $ MONGODB_USER=admin,MONGODB_DATABASE=mongo_db,MONGODB_PASSWORD=secret,MONGODB_ADMIN_PASSWORD=super-secret \ + $ centos/mongodb-26-centos7 + +(Database work to be continued...) #### enjoy