Skip to content

System Operations Guide

Operations manual for Hereby platform deployment, database management, monitoring, and integrations.

Target Users: System Administrators, Developers, DevOps Engineers

System Architecture

Service Port Map

ServicePortProtocol
PostgreSQL5432TCP
pgAdmin5050HTTP
Redis6379TCP
API Server3000HTTP
HR System4000HTTP
Admin Panel4001HTTP
Employee App4002HTTP
Nurse Scheduler4003HTTP
Internal Approval4004HTTP
General Affairs4005HTTP
Management Dashboard4006HTTP
Inventory4007HTTP
Module Manager4010HTTP
System Admin API4100HTTP
System Admin UI4101HTTP

Guides

Core Operations

Multi-Tenancy

Integrations

Common Tasks

Provision a New Hospital

bash
# Via System Admin Tool UI (recommended)
open http://localhost:4101
# Login with an operator account (platformRole=OPERATOR) on the target endpoint
# → 조직 관리 → New Organization → fill wizard

# Or via API
curl -X POST http://localhost:4100/api/provision -H "..." -d '{...}'

Set Up Secom for an Organization

bash
make provision-secom CLIENT=CLINIC01 PASSWORD='<secure>' SECOM_IP=192.168.20.101/32

Backup Database

bash
make db-backup
# Creates timestamped dump in ./backups/

Update to a New Version

bash
git pull
pnpm install
pnpm build
make db-migrate
# Restart services

Environment Variables

See .env.example for the complete list. Critical production variables:

VariableRequired?Notes
DB_PASSWORDYesStrong password
DB_SSLRecommendedtrue in production
JWT_SECRETYesLong random string
SYSADMIN_JWT_SECRETYesSigns system-admin console session tokens; the console refuses to boot in production without it
SYSADMIN_ALLOWED_IPSRecommendedComma-separated exact IPs — no CIDR support; empty falls back to localhost only
FCM_SERVICE_ACCOUNT_KEYOptionalFor mobile push
WEB_PUSH_PUBLIC_KEY + WEB_PUSH_PRIVATE_KEYOptionalFor browser push