add pool option to the config
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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 = {
|
module.exports = {
|
||||||
development: {
|
development: {
|
||||||
username: 'docker',
|
username: 'docker',
|
||||||
@@ -5,14 +11,17 @@ module.exports = {
|
|||||||
database: 'CrmIntegration',
|
database: 'CrmIntegration',
|
||||||
port: '5431',
|
port: '5431',
|
||||||
dialect: 'postgres',
|
dialect: 'postgres',
|
||||||
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
||||||
|
pool
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
"use_env_variable": 'DATABASE_URL',
|
"use_env_variable": 'DATABASE_URL',
|
||||||
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
||||||
|
pool
|
||||||
},
|
},
|
||||||
production: {
|
production: {
|
||||||
"use_env_variable": 'DATABASE_URL',
|
"use_env_variable": 'DATABASE_URL',
|
||||||
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
|
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
|
||||||
|
pool
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user