Deployment Overview
Open Astra can be deployed on any Linux host with Docker or Node.js. This section covers platform-specific guides for DigitalOcean, AWS, and GCP, plus a generic Docker Compose setup for self-hosted environments.
Deployment options
| Platform | Best for | Managed DB |
|---|---|---|
| DigitalOcean | Simplest setup, small–medium teams | Managed PostgreSQL with pgvector |
| AWS | Enterprise, existing AWS infrastructure | RDS PostgreSQL + Aurora |
| GCP | Teams using Google Cloud or Vertex AI | Cloud SQL for PostgreSQL |
| Docker | On-prem, airgapped, full control | Self-managed PostgreSQL |
Prerequisites
All deployment targets require the same infrastructure:
- PostgreSQL 14+ with the
pgvectorextension installed - Node.js 18+ or Docker 24+ on the host
- Environment variables configured — at minimum
DATABASE_URLand at least one LLM provider API key - Typesense (optional) — required for hybrid search; falls back to pgvector-only if absent
Production architecture
A typical production deployment runs three services:
text
┌─────────────────────────────────────────────────┐
│ Reverse proxy (nginx / Caddy / cloud LB) │
└───────────────────────┬─────────────────────────┘
│
┌─────────▼──────────┐
│ Open Astra gateway │
│ (Node.js / Docker) │
└────┬─────────┬─────┘
│ │
┌────────────▼─┐ ┌────▼──────────┐
│ PostgreSQL │ │ Typesense │
│ + pgvector │ │ (optional) │
└──────────────┘ └───────────────┘Database migrations
Open Astra uses Drizzle ORM for schema management. Run migrations before starting the gateway on a new database or after upgrading:
bash
npx drizzle-kit migrateSee Database Migrations for rollback procedures and multi-tenant migration strategies.