gittoken-database-manager
Version:
GitToken Database Manager
25 lines (18 loc) • 685 B
JavaScript
/**
* NOTE If running the server using NodeJS instead of docker-compose, uncomment the line
* below to read the .env file and map to config
*/
require('dotenv').config({ path: `${process.cwd()}/.env`})
/**
* Configuration file for GitToken DataBase Manager instance
* This file parses the environment variable passed to the docker-compose.yml
* env_file field, then exports the configuration to be used in the application.
* @type {Object}
*/
const config = {
mysqlHost: process.env['MYSQL_HOST'],
mysqlUser: process.env['MYSQL_USER'],
mysqlRootPassword: process.env['MYSQL_ROOT_PASSWORD'],
mysqlDatabase: process.env['MYSQL_DATABASE']
}
module.exports = config