feat: add public Docker deployment stack

This commit is contained in:
2026-08-04 14:45:31 +00:00
commit 09d849de07
14 changed files with 628 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
const path = require('node:path');
const root = process.env.GATEWAY_WORKSPACE_ROOT || '/srv/core/repository';
const common = { env: { ...process.env }, autorestart: true, kill_timeout: 15000 };
module.exports = {
apps: [
{
...common,
name: 'sammo:gateway-api',
cwd: path.join(root, 'app/gateway-api'),
script: path.join(root, 'app/gateway-api/dist/index.js'),
env: { ...process.env, GATEWAY_ROLE: 'api' },
},
{
...common,
name: 'sammo:gateway-frontend',
cwd: path.join(root, 'app/gateway-frontend'),
script: path.join(root, 'app/gateway-frontend/node_modules/vite/bin/vite.js'),
args: 'preview --host 0.0.0.0 --port 15000',
},
{
...common,
name: 'sammo:gateway-orchestrator',
cwd: path.join(root, 'app/gateway-api'),
script: path.join(root, 'app/gateway-api/dist/index.js'),
env: { ...process.env, GATEWAY_ROLE: 'orchestrator' },
},
{
...common,
name: 'sammo:release-controller',
cwd: path.join(root, 'app/release-controller'),
script: path.join(root, 'app/release-controller/dist/index.js'),
args: 'daemon',
},
],
};