perf(app): working docker build stage, with github actions ci to push image

This commit is contained in:
Amruth Pillai
2022-03-04 10:54:31 +01:00
parent 36f41c2f9d
commit 5104ea6438
16 changed files with 712 additions and 657 deletions
+5 -3
View File
@@ -13,13 +13,15 @@ const validationSchema = Joi.object({
TZ: Joi.string().default('UTC'),
PORT: Joi.number().default(3100),
SECRET_KEY: Joi.string().required(),
NODE_ENV: Joi.string().valid('development', 'production').default('development'),
// URLs
APP_URL: Joi.string().default('http://localhost:3000'),
SERVER_URL: Joi.string().default('http://localhost:3100'),
NODE_ENV: Joi.string().valid('development', 'production').default('development'),
// Database
POSTGRES_HOST: Joi.string().required(),
POSTGRES_PORT: Joi.string().default(5432),
POSTGRES_PORT: Joi.number().default(5432),
POSTGRES_USERNAME: Joi.string().required(),
POSTGRES_PASSWORD: Joi.string().required(),
POSTGRES_DATABASE: Joi.string().required(),
@@ -33,7 +35,7 @@ const validationSchema = Joi.object({
// Mail
MAIL_HOST: Joi.string().allow(''),
MAIL_PORT: Joi.string().allow(''),
MAIL_PORT: Joi.number().default(465),
MAIL_USERNAME: Joi.string().allow(''),
MAIL_PASSWORD: Joi.string().allow(''),
});
+1 -1
View File
@@ -2,7 +2,7 @@ import { registerAs } from '@nestjs/config';
export default registerAs('mail', () => ({
host: process.env.MAIL_HOST,
port: parseInt(process.env.MAIL_PORT, 10),
port: parseInt(process.env.MAIL_PORT, 10) || 465,
username: process.env.MAIL_USERNAME,
password: process.env.MAIL_PASSWORD,
from: process.env.MAIL_FROM,