Docker Compose or Kubernetes? An honest guide for small teams

Kubernetes has become the default answer to “how should we run containers in production?”, and for a small team it is often the wrong one. We regularly meet companies with three services, one developer and a Kubernetes cluster that nobody fully understands. We also meet teams that outgrew a single Compose file long ago and lose a day every time a server dies. Both are expensive. This guide helps you choose deliberately.
What each tool is really for
Docker Compose describes a set of containers on one host: images, networks, volumes, environment and restart policies. It has no scheduler and no idea that other machines exist. If the host goes down, everything on it goes down.
Kubernetes is a cluster scheduler. It places containers on many nodes, restarts and moves them when nodes fail, rolls out new versions gradually, scales on load and provides service discovery, configuration and secrets as APIs. The price is complexity: networking (CNI), ingress, storage classes, RBAC, upgrades every few months and a large new vocabulary.
When Compose on one server is the right answer
- A handful of services with predictable load, such as a website, an API, a database and a worker.
- Downtime of several minutes during a deploy or a server restart is acceptable, or can be hidden behind a maintenance page.
- The team has no one who wants to own a cluster.
- Recovery means “restore the server from a snapshot and redeploy”, and that takes less than your RTO.
A well-configured single server with a managed database or good backups is more reliable than a badly run cluster. Simplicity is a reliability feature.
Making Compose production-grade
Most Compose problems come from treating a development file as production. The minimum we expect:
services:
app:
image: registry.example.com/app:1.14.2 # pinned tag, never :latest
restart: unless-stopped
read_only: true
user: "10001"
environment:
DB_HOST: db
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/health"]
interval: 15s
retries: 3
deploy:
resources:
limits: { memory: 512m }
logging:
driver: json-file
options: { max-size: "10m", max-file: "5" }
db:
image: postgres:16
volumes: ["db:/var/lib/postgresql/data"]
volumes:
db: {}
- Pinned image versions so a redeploy does not silently pull a new major version.
- Health checks and restart policies so a hung process is restarted.
- Memory limits, otherwise one leaking container triggers the kernel OOM killer on the database.
- Log rotation. Unlimited JSON logs filling the disk is the most common outage we see on Docker hosts.
- Backups of volumes with consistent database dumps, not just a copy of the data directory, and a tested restore.
- Published ports bound to 127.0.0.1 behind a reverse proxy. Docker writes its own iptables rules, so a port published as
8080:8080is reachable from the internet even if UFW says it is blocked. - Deploys from CI, not by editing files on the server over SSH.
Signs you have outgrown one host
- You need to keep running when a server fails, not just recover within an hour.
- Load varies enough that you need to add capacity automatically.
- You run more than ten to fifteen services, and dependencies between them make manual deploys risky.
- Several teams deploy independently and need isolation, quotas and access control.
- You need zero-downtime rolling deployments as a standard, not a special procedure.
If none of these is true today, a cluster is an investment in a future that may not come.
The middle ground
- Two Compose hosts behind a load balancer with an external managed database. Deploy to one host at a time. Simple, and it removes the single point of failure for stateless services.
- k3s, a lightweight certified Kubernetes distribution that runs well on one to three small nodes. Good for learning and for small production clusters, but you still own upgrades, backups of the cluster state and the networking.
- Managed Kubernetes (EKS, AKS, GKE and similar) removes the control plane work but not the need to understand Kubernetes. Budget for the control plane fee, load balancers and someone’s time.
- Managed container platforms such as AWS ECS with Fargate, Google Cloud Run or Azure Container Apps run containers without a cluster to manage. For many small teams this is the best next step after Compose.
Costs people forget
With Kubernetes, the bill is not mainly servers. It is upgrades (each minor version is supported for roughly a year, so you upgrade at least annually), monitoring, ingress and certificate management, cluster backups, and the time to debug a networking issue at the worst moment. If nobody on the team can explain how a request reaches a pod, the cluster is a risk, not an asset.
Our take
For most companies with fewer than ten services and one or two developers, we recommend Docker Compose on a well-managed server, or two, with infrastructure as code (see Terraform and Ansible) and a deploy pipeline. Move to a managed container platform when availability requirements demand it, and to Kubernetes when you have both the scale and the people. Write your Compose setup cleanly, with images built in CI, configuration in environment variables and health checks, and moving later is straightforward.
Not sure which one fits you?
We set up and run both, and we will tell you if you do not need a cluster. See our DevOps plans in pricing or ask for the free IT audit.


