Your backup passed. Will your app?
A successful backup is not proof of recovery. ComposeDrill restores a Docker Compose workload into an isolated rehearsal environment, restores persistent state, starts the stack, and runs real health checks. If the application does not come back healthy, the drill fails.
BACKUP / MANIFEST PASS
DATA RESTORE PASS
CONTAINER STARTUP PASS
APPLICATION HEALTH FAIL
RESULT FAIL
Containers running is not enough. The application itself has to recover.
ComposeDrill is a recovery-rehearsal CLI. It is not a backup scheduler, storage backend, Docker dashboard, or Restic/Kopia replacement.
brew install maliroq/tap/composedrillYou do not need Go installed beforehand; Homebrew supplies the build dependency and builds ComposeDrill from the tagged source release.
With Go 1.23 or newer:
go install github.com/maliroq/composedrill/cmd/composedrill@v0.1.0-previewThe binary is written to GOBIN, or to $(go env GOPATH)/bin when GOBIN is unset.
Direct archives remain available for Linux, offline/manual installs, and users who do not use Homebrew or Go:
| Platform | Archive |
|---|---|
| macOS Apple Silicon | composedrill_0.1.0-preview_darwin_arm64.tar.gz |
| macOS Intel | composedrill_0.1.0-preview_darwin_amd64.tar.gz |
| Linux x86-64 | composedrill_0.1.0-preview_linux_amd64.tar.gz |
| Linux arm64 | composedrill_0.1.0-preview_linux_arm64.tar.gz |
Download the archive and checksums.txt from the v0.1.0-preview release. See docs/INSTALL.md for checksum and manual-install commands.
Validation boundary: the final real-Docker release gate was run on macOS arm64 with Docker Desktop. The other packaged architectures are build targets and are not presented as equivalent real-Docker platform validation.
Start with the read-only commands:
composedrill scan ./homelab
composedrill plan ./homelabWhen you have prepared a checksummed recovery bundle, preview the rehearsal before creating Docker resources:
composedrill rehearse --backup ./recovery-bundle --dry-run ./homelabscan and plan change nothing. The dry run validates and plans the recovery rehearsal without creating Docker resources.
A backup job can finish successfully while recovery is still broken:
- a persistent path was never included;
- a database dump exists but is unusable;
- a required
.env, secret, or config is absent; - a mutable image tag now resolves to something different;
- a container starts but the application is unhealthy;
- the restore procedure depends on undocumented manual steps.
ComposeDrill asks the next question: can this Compose application be reconstructed from the supplied recovery bundle and prove that it works?
backup + checksummed manifest
|
v
validate declared inputs
|
v
rewrite into a random run namespace
|
v
restore binds / volumes / databases
|
v
start containers
|
v
Docker health + explicit checks
|
v
PASS / FAIL / MANUAL
|
v
evidence + cleanup
For HTTP and TCP checks, ComposeDrill does not publish recovery services back onto host ports. It runs a constrained, tool-owned probe container on the verified internal recovery network.
A running container is not automatically a successful recovery. Startup and application health are reported separately.
| Recovery path | v0.1.0-preview status |
|---|---|
| Bind mounts | Supported: directory, .tar, .tar.gz/.tgz |
| Named volumes | Supported: tar archive into a disposable volume; real-Docker gated |
| Anonymous volumes | Supported when explicitly mapped by service + target; real-Docker gated |
| PostgreSQL plain SQL | Supported; real-Docker gated with restored-row assertion |
| PostgreSQL custom format | Implemented; not independently real-Docker gated |
| MariaDB logical SQL | Supported; real-Docker gated with restored-row assertion |
| MySQL logical SQL | Implemented through the same mysql-sql path; not independently real-Docker gated |
| SQLite | Supported restore path; source capture must use SQLite-safe backup semantics |
Health verification supports active Docker healthchecks plus explicit HTTP, TCP, command, file-exists, and DNS checks. See docs/SUPPORT_MATRIX.md for the exact evidence boundary.
The default posture is refusal over cleverness.
- Production Compose projects are never brought down.
- Production named volumes are never restore targets.
- Production bind sources are replaced with run-local paths.
- Recovery services publish no host ports.
- Recovery networks are rewritten as
internal: true. - Run resources use random project names plus ownership labels.
- Cleanup deletes only resources whose namespace and ownership labels match the drill.
- Privileged/device/GPU access, custom runtimes, namespace/cgroup sharing, capability additions,
extra_hosts, external links, servicesecurity_opt, host-capable volume/network driver settings, and unknown mount types are refused for automatic rehearsal. - External secret/config objects and undeclared host-file inputs are refused.
- Tar extraction rejects traversal, links/symlinks, and special files.
- Unmapped persistent data becomes
MANUAL CHECK REQUIRED, neverPASS. - Cleanup failure forces the overall drill to fail.
Docker is still not treated as a hardened security sandbox. Untrusted images belong on a dedicated host or VM.
Read docs/SAFETY.md and docs/THREAT_MODEL.md before using rehearse on an important host.
After reviewing the safety model and the dry run, run the real rehearsal:
composedrill rehearse --backup ./recovery-bundle ./homelabThe limits are part of the product contract, not footnotes:
- Docker Compose only; no Swarm, Kubernetes, VM, or orchestration-specific recovery.
- Compose profiles are not activated automatically; profile-gated services remain manual.
- Docker internal networking reduces exposure but is not a hardened sandbox.
- Archive validation does not yet impose a global entry-count or expanded-byte quota.
- Directory-form bundles have a documented validation/use TOCTOU boundary.
- Manifests and evidence are checksummed but not cryptographically signed.
- PostgreSQL custom-format and MySQL logical restore paths are implemented but not independently real-Docker gated in v0.1.
- DNS checks and scaled-service aggregation do not yet have dedicated real-Docker fixtures.
- Several synthetic fixture service images use mutable version tags; the scanner flags them as such.
See docs/KNOWN_LIMITATIONS.md for the full list.
A drill writes machine-readable evidence under:
.composedrill/evidence/<run-id>.json
The report records the run namespace, Compose and bundle hashes, per-service configuration/data/startup/health states, explicit check results, findings, cleanup state, and tool version. Evidence redaction covers common secret assignments and URL credentials, but it is defense-in-depth rather than a general DLP system.
The repository also includes docs/SAMPLE_RECOVERY_REPORT.json.
Official preview archives are built as static Go binaries for:
- macOS arm64
- macOS amd64
- Linux amd64
- Linux arm64
The release workflow runs unit tests, race tests, vet, a production build, and the Docker integration suite before GoReleaser publishes archives and checksums.txt. The final v0.1.0-preview release gate has been run on macOS arm64 with Docker Desktop; other packaged architectures are build targets and must not be read as equivalent real-Docker platform evidence.
See docs/INSTALL.md and docs/DOCKER_VALIDATION.md.
The most useful contribution is a recovery fixture for a real self-hosted stack:
Add a recovery fixture for a real self-hosted stack.
A fixture should contain only synthetic/non-secret data and must prove something meaningful about recovery. It needs:
- a minimal Compose file that represents the persistence pattern;
- a checksummed recovery bundle;
- a documented application-consistent backup method;
- at least one check that proves restored state, not merely process startup;
- an expected success or intentional-failure outcome;
- cleanup/isolation assertions where new Docker resources are introduced.
See CONTRIBUTING.md and the Application recovery fixture issue template.
- Architecture
- Backup/recovery semantics
- Safety model
- Threat model
- Support matrix
- Known limitations
- Release validation
- Roadmap
License: MIT.
