knexfile.js 445 B

123456789101112131415161718192021
  1. require('dotenv').config();
  2. module.exports = {
  3. client: process.env.DB_CLIENT,
  4. connection: {
  5. host: process.env.DB_HOST,
  6. user: process.env.DB_USER,
  7. password: process.env.DB_PASSWORD,
  8. database: process.env.DB_DATABASE
  9. },
  10. pool: {
  11. min: process.env.DATABASE_POOL_MIN || 2,
  12. max: process.env.DATABASE_POOL_MAX || 10
  13. },
  14. migrations: {
  15. directory: 'src/api/database/migrations'
  16. },
  17. seeds: {
  18. directory: 'src/api/database/seeds'
  19. }
  20. };