transceiver-db/ecosystem.config.js

72 lines
2.0 KiB
JavaScript

module.exports = {
apps: [
{
name: "tip-api",
script: "./node_modules/.bin/tsx",
args: "packages/api/src/index.ts",
cwd: "/opt/tip",
interpreter: "none",
exec_mode: "fork",
env: {
NODE_ENV: "production",
API_PORT: "3201",
POSTGRES_HOST: "localhost",
POSTGRES_PORT: "5433",
POSTGRES_DB: "transceiver_db",
POSTGRES_USER: "tip",
POSTGRES_PASSWORD: "***REDACTED***",
OLLAMA_URL: "http://localhost:11434",
QDRANT_URL: "http://localhost:6333",
DOCLING_URL: "http://localhost:8100",
},
max_memory_restart: "500M",
instances: 1,
autorestart: true,
},
{
name: "tip-mcp",
script: "./node_modules/.bin/tsx",
args: "packages/mcp-server/src/http-server.ts",
cwd: "/opt/tip",
interpreter: "none",
exec_mode: "fork",
env: {
NODE_ENV: "production",
MCP_HTTP_PORT: "3202",
MCP_SECRET: "tip-mcp-2026-prod",
POSTGRES_HOST: "localhost",
POSTGRES_PORT: "5433",
POSTGRES_DB: "transceiver_db",
POSTGRES_USER: "tip",
POSTGRES_PASSWORD: "***REDACTED***",
QDRANT_URL: "http://localhost:6333",
OLLAMA_URL: "http://localhost:11434",
CORS_ORIGINS: "https://eo-global-pulse.context-x.org,https://switchblade.context-x.org",
},
max_memory_restart: "300M",
instances: 1,
autorestart: true,
},
{
name: "tip-scraper",
script: "./node_modules/.bin/tsx",
args: "packages/scraper/src/index.ts",
cwd: "/opt/tip",
interpreter: "none",
exec_mode: "fork",
env: {
NODE_ENV: "production",
POSTGRES_HOST: "localhost",
POSTGRES_PORT: "5433",
POSTGRES_DB: "transceiver_db",
POSTGRES_USER: "tip",
POSTGRES_PASSWORD: "***REDACTED***",
},
max_memory_restart: "1G",
instances: 1,
autorestart: true,
cron_restart: "0 0 * * *",
},
],
};