Case study
A production platform on a 2-vCPU server
Eighteen public sites and services, including games, everyday tools, a blog, children's apps, analytics and a workflow engine. One person, one small server, under $15 a month, deployed on every push to Git.
1. Context and constraints
| Driver | What it meant for the design |
|---|---|
| Cost: personal budget, fixed | No per-app or per-request pricing; one host shared well |
| Operations: one person, often on a phone | Fully automated deploys; no manual steps on the server; alerts to the phone |
| Speed: new apps every few days | A repeatable "golden path": three files and one command to go live with HTTPS |
| Privacy: families and children as users | Local-first by default; no third-party trackers; encrypted backups |
| Security: internet-facing, AI-assisted development | Least privilege everywhere, including the AI agent and the CI system |
| Availability: hobby and early-product apps | A single host is acceptable; recovery through Git plus backups, not redundancy |
2. System context (C4 level 1)
3. Containers (C4 level 2)
4. Deploy flow: from git push to live
5. Measured footprint
A snapshot from 4 December 2026 (docker stats):
| Component | Count | RAM each | Notes |
|---|---|---|---|
| Static sites (nginx) | 8 | 3–4 MB | Including this site |
| Node apps | 6 | 23–40 MB | Multiplayer games, family app, tests |
| Postgres 16 | 7 | 29–37 MB | One per stateful app, plus analytics |
| Traefik | 1 | 36 MB | Edge, TLS, routing |
| Ghost blog + MySQL 8 | 2 | 184 / 444 MB | The heaviest pair, and a candidate for tuning |
| Umami analytics | 1 | 234 MB | Self-hosted, cookieless |
| Backup job | 1 | 12 MB | Nightly dump and encrypt |
| n8n | 1 | 448 MB | Workflows, alerts, offsite backup job |
| Total | 27 | ≈ 1.8 GB | Of 8 GB; load average about 0.2 on 2 vCPUs |
What this shows: right-sizing matters more than raw capacity. Three components (n8n, MySQL, Umami) use about 60% of the memory. If capacity got tight, I'd tune or move those first rather than buy a bigger server.
6. Quality and delivery practices
- Everything in Docker: the build, the voice-clip generation (text-to-speech at build time) and the Android toolchain. The host stays clean, and builds are reproducible.
- Build-time checks: for example, the kids site's build fails if any story uses words above its reading level.
- Automated tests: unit and end-to-end tests (including backup, erase and restore in the home organiser). For the Android apps, emulator runs in CI on a phone and a tablet, plus a real stylus drawing.
- Security headers on every site, and a strict Content-Security-Policy on the static apps. This site allows no JavaScript at all.
- Written decisions: nine ADRs, including the ones that say "not yet".
7. The same platform at bank scale
The design principles carry over unchanged. The implementation changes with the risk and the scale:
| Concern | Here | In a bank |
|---|---|---|
| Compute | 1 VPS, Compose | Managed Kubernetes across 2–3 availability zones; a DR region |
| Delivery | Push → locked SSH → build on host | Build once, sign, scan; Argo CD pulls; promote the same digest through environments |
| Identity | Per-app keys, limited sudo | Workload identity (OIDC), PAM for humans, just-in-time access |
| Secrets | Env files in private repos (a known gap) | Vault or a cloud KMS, rotated, never in Git |
| Data | Postgres per app, nightly dumps | Managed DB with point-in-time recovery, cross-region replicas, WORM backups |
| Edge | Traefik + Let's Encrypt | WAF, DDoS protection, API gateway, mTLS inside |
| Observability | Health checks + phone alerts | OpenTelemetry, SLOs with error budgets, on-call rota |
| Governance | ADRs in Git | ADRs plus architecture review board, risk register, audit evidence |