Skip to content
Dave Cuza edited this page Oct 4, 2026 · 6 revisions

docker-bouncer is a Docker CLI plugin that gives Compose services two things Compose lacks on a single host:

  • Services, in the Kubernetes sense: a stable address (the service's name, ports and network aliases) served by an Envoy proxy that sends traffic only to healthy replicas.
  • Bounces, in the PaaSTA sense: rolling replacements of those replicas that start the new version, gate it on health, and drain the old one, with four bounce methods.

There is no control plane and no state store. Every run derives what it needs from the compose file, container labels and Envoy's live view. Each revision of a Service is kept in its replicas' labels, which is where history and undo read it.

Animation: crossover with three replicas. Each new v2 replica starts, joins Envoy's list and turns healthy before one v1 replica leaves the list, finishes its in-flight requests and is removed. Three replicas serve throughout.

When to use it

  • You run one Docker host with Compose and want deploys that do not drop requests.
  • Your services speak HTTP (by default any non-5xx answer on / counts as healthy).
  • You want rollback (undo) and a record of what ran (history) without adding a database, an orchestrator or a registry of deployments.
  • You want the compose file to stay the source of truth: Bouncer never rewrites it.

When not to use it

  • More than one host, scheduling, autoscaling or self-healing across machines: use Kubernetes, Nomad or Swarm.
  • Plain TCP or UDP services: only HTTP Services are supported.
  • Services that need a fixed container_name, static IPs or a static MAC address: a Service runs several containers, so these are rejected.
  • You also need plain docker compose up on the same project: the two fight over the Service's name and ports (see Operations).

Pages

Page What it covers
Getting started Install, a first Service, a first bounce, checking it, cleaning up
Configuration Every x-bouncer key, ports, rejected settings, pulling, replica count
Bounce methods The four methods animated, surge and unavailable arithmetic, worked examples
Draining and health Envoy and Docker health checks, min_task_uptime, the health deadline, drain methods
Operations up, stop, down, ps, ls, history, undo, refresh, migrate, the lock, reboots, output and CI
Troubleshooting Failed bounces, stuck locks, warnings, port collisions, exit codes, known gaps
How it works Derived services, labels, revisions, the invocation, the storage format, the Envoy config, the planner loop

Clone this wiki locally