Lightsail 自托管部署
lightsail-docker-deploy把 Next.js + SQLite 应用部署到一台 AWS Lightsail 服务器:Docker Compose + Caddy 自动 HTTPS、加固 SSH 与防火墙、每日备份和恢复演练、CI 部署与自动回滚。
完整说明(英文)
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.
购买后可查看完整说明
这是付费技能,可单独购买,也可通过套餐获得全部技能。购买后可在本页或账户页下载。
目录
- 01When to use / when not to
- 02Prerequisites
- 03Steps
- 04Files to create or change
- 05Hard rules
- 06Pitfalls
- 07Self-check (all must be true before you report done)
- 08Scripts and assets