feat: add public Docker deployment stack
This commit is contained in:
@@ -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',
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user