Database Setup
PostgreSQL
HarborGuard requires PostgreSQL 16 or later. The database schema is managed by Drizzle ORM.
Applying Migrations
DATABASE_URL=postgresql://user:pass@host:5432/harborguard npx drizzle-kit push
Backups
Use pg_dump for regular backups:
pg_dump -U harborguard harborguard > backup.sql
Redis
Redis 7 is required for the BullMQ job queue and rate limiting. No special configuration is needed — a default Redis instance works out of the box.