create standalone infisical docker file

This commit is contained in:
Maidul Islam
2023-05-03 16:57:09 -04:00
parent 2d2bbbd0ad
commit 0eceeb6aa9
3 changed files with 170 additions and 0 deletions

32
ecosystem.config.js Normal file
View File

@@ -0,0 +1,32 @@
module.exports = {
apps: [
{
name: 'frontend',
script: "./scripts/start.sh",
instances: 1,
cwd: "./app",
interpreter: 'sh',
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: '500M',
},
{
name: 'backend',
script: 'npm',
args: 'run start',
cwd: "./backend",
instances: 1,
exec_mode: "fork",
autorestart: true,
watch: false,
max_memory_restart: '500M',
},
{
name: "nginx",
script: "nginx",
args: "-g 'daemon off;'",
exec_interpreter: "none",
},
],
};