Repository navigation
Home
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.
- You run one Docker host with Compose and want deploys that do not drop requests.
- Your services speak HTTP (by default any non-
5xxanswer 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.
- 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 upon the same project: the two fight over the Service's name and ports (see Operations).
| 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 |