Architecture portfolio

ADR 001

One VPS with Docker Compose and Traefik, not Kubernetes

AcceptedNovember 2026Scope: whole platform

Context

I needed to host a growing set of small apps: static sites, Node apps with a Postgres each, a blog, analytics and a workflow engine. Expected traffic was low and spiky, the budget was personal, and one person had to run it with no operations team. New apps had to go from idea to live HTTPS in minutes.

Options considered

OptionForAgainst
Managed Kubernetes (EKS, AKS, GKE)Industry standard, self-healing, scales outControl-plane fee alone costs more than this whole platform; days of YAML, ingress and cert-manager for no benefit at this scale
k3s on the VPSKubernetes skills, freeUses about 0.5–1 GB of the 8 GB RAM; one node gives no real high availability, so you pay the complexity without the payoff
PaaS or serverless (Vercel, Render, Cloud Run)No servers to runPer-app pricing and database add-ons multiply across 18 services; cold starts; data spread over several vendors
One VPS, Docker Compose per app, TraefikFixed cost; every app isolated in its own containers and network; Traefik finds new apps from labels and gets certificates automaticallyA single host is a single point of failure; scaling is vertical only; I patch the OS

Decision

Each app is a Docker Compose project in its own folder, with its own network and, where needed, its own Postgres. One Traefik instance routes every subdomain of the main domain by Docker labels and issues Let's Encrypt certificates. A wildcard DNS record means a new subdomain needs no DNS change.

Consequences

Revisit when

At bank scale

Different answer: managed Kubernetes across at least two availability zones, GitOps through Argo CD, a service mesh or mTLS between services, managed Postgres with point-in-time recovery, and a platform team offering a "golden path" template. The principle stays the same: one standard, repeatable way to ship an app. Only the substrate changes.