Initial commit
TODO: change api.conf URL references to use environment variables and add these variables to the docker-compose configuration for host domain
This commit is contained in:
19
api/db/config.js
Normal file
19
api/db/config.js
Normal file
@@ -0,0 +1,19 @@
|
||||
// dotenv
|
||||
// .config()
|
||||
|
||||
module.exports = {
|
||||
HOST: process.env.DB_HOST,
|
||||
PORT: process.env.DB_PORT,
|
||||
// USER: process.env.DB_USER,
|
||||
USER: 'root',
|
||||
// PASSWORD: process.env.DB_PASSWORD,
|
||||
PASSWORD: process.env.DB_ROOT_PASSWORD,
|
||||
DATABASE: process.env.DB_DATABASE,
|
||||
dialect: "mysql",
|
||||
pool: {
|
||||
max: 5,
|
||||
min: 0,
|
||||
acquire: 30000,
|
||||
idle: 10000
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user