feat: add docker files

This commit is contained in:
2026-07-07 17:59:12 +03:30
parent 7b44542ce7
commit 03ba4ceabe
7 changed files with 118 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
import { DataSource } from 'typeorm';
import * as dotenv from 'dotenv';
const ENV = process.env.NODE_ENV;
dotenv.config({
path: !ENV ? '.env' : `.env.${ENV}`,
});
export default new DataSource({
type: 'postgres',
host: process.env.DATABASE_HOST,
port: Number(process.env.DATABASE_PORT),
username: process.env.DATABASE_USER,
});