Managed Postgres
aloof pg plans aloof pg create shop-db --plan pg-basic aloof pg attach shop-db api # injects DATABASE_URL into api and redeploys it aloof pg backup shop-db ; aloof pg backups shop-db ; aloof pg restore shop-db pgb_… aloof pg url shop-db # prints the connection URL (audited)
Postgres 16 runs next to your apps in the EU and is reachable only over a private network that its attached apps join (hostname pg-<name>). It's never exposed on the public edge. Data lives on a volume.
Backups: a pg_dump runs daily; the last 7 are kept on the edge host's disk, with on-demand backups and restore whenever you need them. Backup storage costs $0.22 per GB-month. These local copies are logical backups, not point-in-time recovery.
Off-site: once a day each database is also encrypted on our side (AES-256-GCM) and uploaded to S3-compatible object storage in a different location. Retention is 7 daily, 4 weekly and 3 monthly copies, and the newest copy is test-restored into a scratch Postgres every week. List and restore with aloof pg offsite shop-db and aloof pg offsite-restore shop-db <id>, or from Dashboard → Postgres.
| Plan | CPU / RAM | Disk | Price |
|---|---|---|---|
pg-dev | 1 shared vCPU / 256 MB | 1 GB | $2.99/mo |
pg-basic | 1 shared vCPU / 1024 MB | 10 GB | $9.99/mo |
pg-standard | 2 shared vCPU / 2048 MB | 40 GB | $28.99/mo |
pg-perf | 1 dedicated vCPU / 2048 MB | 100 GB | $60.99/mo |
Not yet: high availability/replicas, point-in-time recovery, extensions beyond the official image, or attaching to apps on remote nodes.