lightsail-docker-deploy

Paid

Self-host a Next.js (or any Dockerized) app with a SQLite database on one AWS Lightsail instance - Docker Compose with Caddy for automatic HTTPS, a first-boot script that installs Docker and locks down SSH and the firewall, daily consistent SQLite backups to a Lightsail bucket with 30-day retention, a restore script and a scripted backup-and-restore drill, GitHub Actions deploys through GHCR with health checks and automatic rollback, health and disk alerts, Lightsail automatic snapshots, and a RUNBOOK template. Use when the user wants to deploy, host or self-host their app on AWS, Lightsail, a VPS or their own server instead of Vercel, or asks about backups, HTTPS, zero-downtime deploys or restoring the database.

Full instructions are included with purchase

This is a paid skill. Buy it on its own or get every skill with a plan. Buyers download it from this page or their account.

Outline

  • When to use / when not to
  • Prerequisites
  • Steps
  • Files to create or change
  • Hard rules
  • Pitfalls
  • Self-check (all must be true before you report done)
  • Scripts and assets