28 lines
728 B
JavaScript
28 lines
728 B
JavaScript
const pool = {
|
|
max: parseInt(process.env.DB_POOL_MAX_CONNECTIONS) || 5,
|
|
acquire: parseInt(process.env.DB_POOL_ACQUIRE) || 60000,
|
|
evict: parseInt(process.env.DB_POOL_EVICT) || 1000,
|
|
};
|
|
|
|
module.exports = {
|
|
development: {
|
|
username: 'docker',
|
|
password: 'docker',
|
|
database: 'CrmIntegration',
|
|
port: '5431',
|
|
dialect: 'postgres',
|
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
|
pool
|
|
},
|
|
test: {
|
|
"use_env_variable": 'DATABASE_URL',
|
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
|
pool
|
|
},
|
|
production: {
|
|
"use_env_variable": 'DATABASE_URL',
|
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
|
pool
|
|
}
|
|
};
|