Docker Compose Stack Doctor
Workflow
- •Normalize Compose inputs.
Run
docker compose configand inspect merged output. - •Check service readiness assumptions.
Verify healthchecks,
depends_onconditions, and startup order. - •Validate network and port plan. Detect host port collisions and external network name mismatches.
- •Validate data and config mounts. Check bind mount paths, permission issues, and missing host files.
- •Confirm recovery path. Define commands for clean restart, selective rebuild, and log triage.
Output Contract
Always provide:
- •Broken service and exact failure signal.
- •Minimal compose or env fixes.
- •Safe restart sequence.
- •Preventive checks for future changes.