Kubernetes or Docker Compose for a small team

If your team runs one app, or a few, on a single server, Docker Compose on a well-kept server is usually enough. Kubernetes earns its cost when the app has to keep running after a server dies, when you need to deploy without a gap across several machines, or when several people deploy many services.

Most articles on this compare the two tools feature by feature. That misses the question a small company is asking: "What do we lose with the simple option, and what does the complicated one cost us to run?"

What each one does

Docker Compose starts a set of containers on one machine from a single file: the app, a database, a cache, a proxy. One command brings the whole set up, and the same file runs on a laptop and on the server.

Kubernetes runs containers across a cluster of machines. It decides which machine each container runs on, replaces containers that fail, moves them when a machine goes away, and rolls out new versions a few at a time.

Compose looks after containers on one machine. Kubernetes looks after a fleet.

What Compose cannot do

Docker's own guide to using Compose in production starts from a single server. The limits follow from that:

  • It cannot survive the server. With a restart policy such as unless-stopped, and Docker set to start at boot, containers come back by themselves after a crash or a reboot. Some teams run docker compose up -d from a systemd unit for the same effect. What Compose cannot do is move them to another machine. A reboot for a kernel update means a minute or two of downtime. A failed disk or a dead server means the app stays down until the server is repaired or rebuilt, and recovery is whatever you have written down. If your site keeps going down, this is often why.
  • It leaves a gap on every deploy. When the image changes, docker compose up stops the old container, then starts the new one. The Compose file has a deploy.update_config section with a start-first option, but plain docker compose up ignores it; only Docker Swarm uses it. Between the old process stopping and the new one being ready, your proxy returns errors.
  • It does not restart a container that hangs. Restart policies react to the main process exiting. A failing healthcheck marks the container unhealthy, and nothing more happens. A process that hangs without exiting stays hung until someone notices.

Each of these has a workaround. A proxy such as Traefik or Nginx can switch traffic between two copies of the app (a blue-green deploy). The community docker-rollout plugin starts new containers alongside the old ones and removes the old ones once the new ones pass their healthcheck; it needs a proxy in front and no fixed ports or container_name on the service. A small watcher container can restart unhealthy ones. All of them are scripts and settings you now own.

None of this matters if a few seconds of errors during a deploy, and a minute or two of downtime when the server reboots for patching, are acceptable. For a lot of small companies they are.

What Kubernetes costs to run

The bill is the smaller part. On AWS, the Amazon EKS control plane, the part of the cluster AWS runs for you, costs $0.10 per cluster per hour, about $73 a month, before a single server. Each Kubernetes version gets 14 months of standard support on EKS. After that the cluster moves to extended support at $0.60 an hour, about $438 a month, for up to 12 more months, after which AWS upgrades it for you. Servers, disks, load balancers and traffic are billed on top. (AWS prices, checked November 2026.)

The larger cost is attention. A production cluster needs:

  • Upgrades at least once a year, of the cluster and of everything installed in it.
  • An ingress controller and certificates, so traffic reaches the app over HTTPS.
  • Deployment files: Helm charts or plain manifests, kept in a repository.
  • Access control, so the right people can deploy and nobody else can.
  • Monitoring and logs that work across many machines, not one.

None of that is difficult for someone who does it often. In a team of five developers with no operations person, it usually falls to one of them, and the cluster becomes the part of the setup only one person understands.

Five questions to decide

QuestionPoints to ComposePoints to Kubernetes
If the server fails, can the app be down until it is rebuilt?Yes, for an hour or soNo, it must carry on by itself
Does it fit on one server, with room to spare?YesNo, or not for long
How many services, and who deploys them?A few, deployed by one teamMany, deployed by several teams
Does anyone on the team know Kubernetes well?NoYes, and more than one person
Does a customer contract set an uptime figure or need more than one data centre?NoYes

If most of your answers fall in the first column, use Compose and run it well. If the first question or the last one lands in the second column, plan for more than one server.

The options in between

The choice is not only Compose or a full cluster.

  • Docker Swarm is built into Docker Engine and reads mostly the same Compose file, though images must be built beforehand, for example in CI. It runs the app across several machines and does rolling updates with the update_config settings that plain Compose ignores. It does much less than Kubernetes, which is the point.
  • k3s is a small, complete Kubernetes distribution that runs on one server or a few. It suits a team that wants Kubernetes skills and tooling without a managed cluster's fee, but it still needs the upgrades and care listed above.
  • Managed container services, such as Amazon ECS with Fargate or Google Cloud Run, run your containers without a cluster for you to look after. You give up some control and accept the provider's way of doing things.

Running Compose well

If Compose is the answer, these are what separate a reliable single server from a fragile one:

  1. Pin image versions by tag or digest, so a redeploy or a rebuilt server runs exactly the version you tested.
  2. Keep a production override file, such as compose.production.yaml, for the settings that differ from a laptop.
  3. Set a restart policy and healthchecks on every service, enable Docker to start at boot, and reboot the server once to prove everything comes back by itself. Make the app exit on errors it cannot recover from, so the restart policy can act.
  4. Rotate logs, so they cannot fill the disk.
  5. Keep secrets out of the Compose file and out of the repository.
  6. Send backups off the server, and restore one now and then, so you know it works.
  7. Watch disk, memory and certificate expiry. Nothing will warn you unless you set it up.
  8. Deploy from CI, not from a laptop, so more than one person can release and every release is the same. If yours deploy by hand and keep breaking, start here.

When to move to Kubernetes

Move when the app no longer fits on one server, one server's downtime is no longer acceptable, or several teams are queueing to deploy. When that happens, the Kubernetes project's Kompose tool converts a Compose file into Kubernetes files as a starting point. Treat its output as a first draft: volumes, secrets, healthchecks and ingress all need deciding by hand.

Don't move because Kubernetes is what larger companies use.


I set up and look after both: Kubernetes clusters, and single servers running Compose on Linux. If you are not sure which suits your team, an infrastructure review answers it for your setup, or I can take on one job, such as making deploys safe on the server you already have, as an ad hoc job. Get in touch and describe what you run.

Frequently asked questions

Is Docker Compose good enough for production?

On one server, yes. With restart policies and Docker starting at boot, the app comes back by itself after a reboot, so the real question is whether you can accept a minute or two of downtime for each reboot, and longer if the server itself fails. Pin your image versions, add healthchecks, rotate logs, keep backups off the server and test a restore. If the app has to survive losing a server without someone stepping in, you need more than Compose.

Is Kubernetes overkill for a small team?

Often, yes. If your app fits on one server and nobody on the team knows Kubernetes, the cluster becomes the part of the setup the fewest people understand. It is worth it when you need several servers, deploys with no gap, or many services deployed by different people.

Can Docker Compose deploy with zero downtime?

Not on its own. docker compose up stops the old container before it starts the new one, and the deploy.update_config settings only take effect under Docker Swarm. A proxy with a blue-green switch, the docker-rollout plugin, or Swarm closes the gap.

Docker Swarm or Kubernetes?

Swarm suits one team running a few services on a handful of servers: it is built into Docker and reads mostly the same Compose file. Kubernetes has far more tools around it and more engineers who know it, at the cost of more to set up and keep upgraded.

Can I use Compose for development and Kubernetes in production?

Yes, and many teams do. Compose stays the quick way to run everything on a laptop, while production runs on Kubernetes from Helm charts or manifests. The Kompose tool converts a Compose file into a first draft of those manifests, but expect to finish them by hand.

What does a Kubernetes cluster cost on AWS?

Amazon EKS charges $0.10 per cluster per hour, about $73 a month, before any servers. A cluster left on an old Kubernetes version moves to extended support at $0.60 an hour, about $438 a month. The servers, storage and load balancers are billed on top, and someone has to keep the cluster upgraded.

Tell me what you need

A problem, a project or a role you're filling. Describe it in your own words and I'll reply within one working day.