diff options
author | 2017-03-28 01:14:31 +0530 | |
---|---|---|
committer | 2017-03-28 01:26:20 +0530 | |
commit | 2aed8a338ba8484fa96d783e04e0874512c12e85 (patch) | |
tree | 9e8f3ac87b179bf94c34f81ee6507f251d71e3c1 /vnfcatalogue/helpers | |
parent | 3bda241da0264a6a46cbda51f61931dd4299db20 (diff) |
Add docker-compose files and requirements
This adds docker-compose file to define a multi-container
vnf_catalogue service alongwith helper service to migrate the schema.
Requires docker-compose installation
To run :: docker-compose up
The webapp by default would be accessible at ip_address:3000
Change-Id: I32daf7f76fb1d82116545187395cd96535c94541
Signed-off-by: Kumar Rishabh <shailrishabh@gmail.com>
Diffstat (limited to 'vnfcatalogue/helpers')
-rw-r--r-- | vnfcatalogue/helpers/migrate.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vnfcatalogue/helpers/migrate.js b/vnfcatalogue/helpers/migrate.js index d884d9c..3f4d892 100644 --- a/vnfcatalogue/helpers/migrate.js +++ b/vnfcatalogue/helpers/migrate.js @@ -10,10 +10,10 @@ var knex = require('knex')({ client: 'mysql', connection: { - host : 'localhost', - user : 'myuser', - password : 'mypassword', - database : 'vnf_catalogue', + host : process.env.DB_HOST, + user : process.env.DB_USER, + password : process.env.DB_PASSWORD, + database : process.env.DB_DATABASE, charset : 'utf8' } }); |