CMS & Headless
Deploy Strapi Headless CMS with PostgreSQL & S3 Backups
Production guide for deploying Strapi on Ubuntu LTS with PostgreSQL 16, PM2 process management, and automated S3 backup snapshots.
Recommended Cloud Specification
Hetzner CPX21 (3 vCPU, 4GB RAM) or DigitalOcean 4GB ($12-$15/mo)
Node.js 22 LTS
PostgreSQL 16
PM2 Process Manager
Caddy Reverse Proxy
AWS S3 / R2
Architectural Highlights
Native PostgreSQL 16 performance with tuned shared_buffers and work_mem.
Zero-container overhead: Node.js runs directly on bare metal with maximum file I/O.
Automated nightly database dumps shipped directly to AWS S3 or Cloudflare R2.
Centurion SRE automated log analysis alerting on API errors or memory spikes.
Environment Template (.env)
HOST=0.0.0.0
PORT=1337
DATABASE_CLIENT=postgres
DATABASE_HOST=127.0.0.1
DATABASE_PORT=5432
Deploy Script (deploy.sh)
npm ci
NODE_ENV=production npm run build
pm2 reload strapi-app
Blueprint FAQ
Can Strapi media uploads be stored on Cloudflare R2 or S3?
Yes. Strapi upload provider plugins can connect directly to Cloudflare R2, AWS S3, or DigitalOcean Spaces for scalable media storage.
Deploy This Blueprint in Under 3 Minutes
Connect your VPS, select this blueprint, and deploy with automated SSL, systemd daemons, and zero downtime.