All articles

DevOps · 5 November 2026 · 4 min read

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 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: {}

Signs you have outgrown one host

If none of these is true today, a cluster is an investment in a future that may not come.

The middle ground

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.

More articles

Websites · 4 min readWordPress staging done right: test updates without breaking the live siteHow to build a staging copy of a WordPress site that is safe and useful: cloning, URL replacement, blocking emails and indexing, the database sync problem with orders and forms, and a repeatable update routine.Read the articleInfrastructure · 3 min readMoving company email to Microsoft 365 or Google Workspace without losing mailA practical plan for moving a small company’s email from hosting or an old server to Microsoft 365 or Google Workspace: preparation, DNS, migration of old mail and the cutover day.Read the articleEmail security · 3 min readWhy are your emails going to spam? A diagnosis by symptomCustomers do not get your invoices or replies? Find the cause by symptom: missing authentication, a blacklisted server, forwarding, content or a new domain, and how to fix each one.Read the article