VectorVue Deployment Guide
This runbook deploys VectorVue for production-style environments.
1. Prerequisites
- Docker Engine and Docker Compose
- OpenSSL
- Linux host recommended for operations
- DNS/hosts mapping for tenant domains
2. Deploy Full Stack
Recommended guided flow:
make wizard
Select option 1.
Direct command path:
make deploy
Expected services:
vectorvue_appvectorvue_runtimevectorvue_ml_workervectorvue_compliance_observation_workervectorvue_compliance_daily_workervectorvue_portalvectorvue_nginxvectorvue_postgresvectorvue_redis
3. Seed Demo or Acceptance Data
make seed-clients
Guided path: make wizard and select option 4.
4. Validation
make api-smoke
docker compose ps
Confirm API health, OpenAPI availability, and worker uptime.
5. TLS Certificate Assets
Generate local cert assets when needed:
./deploy/scripts/generate_tls_certs.sh
6. Tenant-Isolated Deployment Pattern
To run a separate customer namespace:
make customer-deploy-isolated \
CUSTOMER=acme \
TENANT_NAME="ACME Industries" \
HTTP_HOST_PORT=8081 \
HTTPS_HOST_PORT=8444 \
POSTGRES_HOST_PORT=5544
Default local docker host mapping for PostgreSQL is 55433 (override with
POSTGRES_HOST_PORT when needed).
For full isolated portal onboarding in one flow:
make wizard
Select option 2.
7. Upgrade and Migration Sequence
Use this order:
make deploymake pg-schema-bootstrapmake phase65-migratemake phase7e-migratemake phase8-migratemake phase9-migratemake seed-clients(if demo/non-production)
8. Operational Notes
- Do not expose PostgreSQL directly unless required for admin workflows.
- Keep compliance signing keys and JWT secrets managed securely per environment.
- Monitor worker logs for queue failures and migration drift.
9. Commercial Tenant Commands
- Demo-ready seeding:
make seed-clients
- Real tenant onboarding (no dummy campaigns):
make tenant-bootstrap-real ...
- Phase 7-9 no-dummy validation:
make phase79-real-smoke ...
- One-command isolated client portal stack:
make customer-deploy-portal-isolated ...
- Guided command menu:
make wizard
10. TUI Admin Onboarding Wizard
Use this flow to onboard tenant + portal metadata from the app UI.
- Start TUI:
make run-tui
- Login with admin role.
- Open wizard:
- hotkey
Ctrl+Shift+W - or sidebar
ONBOARD WIZARD
- hotkey
- Fill tenant metadata, company branding, and credentials.
- Run
CREATE TENANT + USERS.