chore: initial project scaffold

Setup monorepo structure with pnpm workspaces, Turborepo, TypeScript,
Biome, Docker Compose (PostgreSQL, Redis, MinIO), Nginx configs,
PM2 ecosystem, and SSL certificates.
This commit is contained in:
Sase Dev
2026-02-12 00:26:34 +00:00
commit 7fc47ce9cc
12 changed files with 453 additions and 0 deletions

52
ecosystem.config.js Normal file
View File

@@ -0,0 +1,52 @@
module.exports = {
apps: [
{
name: "sase-api",
cwd: "./apps/api",
script: "dist/main.js",
instances: 2,
exec_mode: "cluster",
env: {
NODE_ENV: "production",
PORT: 4000,
},
max_memory_restart: "512M",
error_file: "../../logs/api-error.log",
out_file: "../../logs/api-out.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "sase-web",
cwd: "./apps/web",
script: "node_modules/.bin/next",
args: "start",
instances: 2,
exec_mode: "cluster",
env: {
NODE_ENV: "production",
PORT: 3000,
},
max_memory_restart: "512M",
error_file: "../../logs/web-error.log",
out_file: "../../logs/web-out.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "sase-worker",
cwd: "./apps/api",
script: "dist/worker.js",
instances: 1,
exec_mode: "fork",
env: {
NODE_ENV: "production",
},
max_memory_restart: "256M",
error_file: "../../logs/worker-error.log",
out_file: "../../logs/worker-out.log",
merge_logs: true,
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
],
};