2025-07-25 18:07:20 +00:00
|
|
|
require("dotenv").config();
|
2025-07-08 10:40:49 -07:00
|
|
|
|
|
|
|
module.exports = {
|
2025-07-25 16:00:55 -07:00
|
|
|
dev: {
|
2025-07-25 18:07:20 +00:00
|
|
|
client: "postgresql",
|
2025-07-08 10:40:49 -07:00
|
|
|
connection: {
|
2025-07-25 18:07:20 +00:00
|
|
|
host: "db",
|
2025-07-25 16:00:55 -07:00
|
|
|
port: 5432,
|
2025-07-08 10:40:49 -07:00
|
|
|
database: process.env.DB_NAME,
|
|
|
|
user: process.env.DB_USER,
|
2025-07-25 18:07:20 +00:00
|
|
|
password: process.env.DB_PASSWORD,
|
2025-07-08 10:40:49 -07:00
|
|
|
},
|
|
|
|
pool: {
|
|
|
|
min: 2,
|
2025-07-25 18:07:20 +00:00
|
|
|
max: 10,
|
2025-07-08 10:40:49 -07:00
|
|
|
},
|
|
|
|
migrations: {
|
2025-07-25 18:07:20 +00:00
|
|
|
tableName: "knex_migrations",
|
|
|
|
directory: "./migrations",
|
|
|
|
},
|
2025-07-08 10:40:49 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
production: {
|
2025-07-25 18:07:20 +00:00
|
|
|
client: "postgresql",
|
2025-07-08 10:40:49 -07:00
|
|
|
connection: {
|
2025-07-25 18:07:20 +00:00
|
|
|
host: "db",
|
|
|
|
port: process.env.DB_PORT,
|
|
|
|
database: process.env.DB_NAME,
|
|
|
|
user: process.env.DB_USER,
|
|
|
|
password: process.env.DB_PASSWORD,
|
2025-07-08 10:40:49 -07:00
|
|
|
},
|
|
|
|
pool: {
|
|
|
|
min: 2,
|
2025-07-25 18:07:20 +00:00
|
|
|
max: 10,
|
2025-07-08 10:40:49 -07:00
|
|
|
},
|
|
|
|
migrations: {
|
2025-07-25 18:07:20 +00:00
|
|
|
tableName: "knex_migrations",
|
|
|
|
directory: "./migrations",
|
|
|
|
},
|
|
|
|
},
|
2025-07-08 10:40:49 -07:00
|
|
|
};
|