Running a multi-app platform on a small cluster
Published 2026-08-21
The constraint
A platform with many applications and a team of one has a particular constraint: every operational habit has to be cheap to repeat and hard to get wrong. There is no on-call rota to absorb mistakes, so the infrastructure has to make the safe action the easy one.
The layout
The applications run as containers on a small cluster of three servers under Docker Swarm. One node handles ingress with a reverse proxy that routes by hostname, another hosts the portal and its supporting services, and a third hosts the applications. Memory is the scarce resource on machines of this size, so capacity is planned around what each service really uses at rest and what a build needs, and builds are scheduled so that they do not compete with heavy services.
Every development hostname sits behind an identity-aware access layer, so a half-finished application is never reachable by accident. Production hostnames go through the same edge, with a web application firewall in front.
Environments and promotion
Development and production are separate repositories, and production only ever receives changes by merging from development. Each application keeps an environment-agnostic source tree, with the names and values that differ between environments held in small per-environment files and compose files. That rule exists because merging development into production used to import development container names; making the tree environment-neutral removed the whole class of mistakes.
Promotion is deliberate: a human confirms each one, the version on the server is checked after the push rather than assumed, and database-changing steps are shown with a rollback plan before they run.
Backups and watchdogs
Databases are backed up daily to object storage, and a watchdog checks that the newest backup is fresh and that every database that should have a backup does. A backup that silently stopped weeks ago is the classic failure, and the watchdog exists to catch exactly that. Backups reduce the cost of a mistake rather than removing it, so destructive operations on a live database still need an explicit, informed approval.
Cost is watched with the same attention. Network egress is billed, so large payloads and polling are questioned before they are shipped, responses are compressed and cached, and webhooks are preferred to polling.
What this buys
The result is not sophistication, it is predictability. A new application is created from a template, inherits the deployment tooling, the backup rules and the access layer, and goes through the same promotion path as every other. The time saved is spent on the products instead of the plumbing.