Tutorials How I self-host Strapi on a cheap VPS with HTTPS and scheduled backups
Enable HLS to view with audio, or disable this notification
Disclosure up front: I built the tool this setup uses (ShipperKit, open source and MIT licensed). Mods, remove this if it doesn't fit here.
Getting Strapi running is the easy part. Keeping it running is where I kept losing evenings: production builds, a database and persistent uploads. This is the setup I use now on a single VPS.
What you need
- A server running Ubuntu 22.04/24.04 or Debian 12/13, x86-64 or ARM64
- 2 GB of RAM or more
- Ports 80, 443 and 8080 open
- A domain with an A record pointing at the server, like
strapi.yourdomain.com
1. Install ShipperKit
curl -fsSL https://shipperkit.dev/install.sh | sudo bash
Open the address it prints, paste the setup token and create your account.
2. Deploy Strapi
Open the Service Library, search for Strapi and select it. Enter strapi.yourdomain.com as the domain and deploy. The secrets and database passwords are generated for you, and HTTPS comes from Let's Encrypt automatically.
3. Set up backups before you put real data in
Add a backup schedule for the uploads volume and the database. You can store backups on the server itself or in any S3-compatible bucket (Backblaze B2, Cloudflare R2, Wasabi). Restore one as a separate copy once, so you know the restore actually works before you need it.
Strapi-specific things to watch for
- Content-type changes still happen in your dev environment, not in production
Repo: https://github.com/matyas-toth/shipperkit Website: https://shipperkit.dev Happy to answer questions about running Strapi on it, or about self-hosting Strapi in general.