Docker Compose
Docker Compose validation and best practices
Installation
First, install the Han CLI tool:
npm install -g @thebushidocollective/hanThen install the plugin:
han plugin install buki-docker-composeOverview
Docker Compose configuration validation for container orchestration.
Features
- Validates Docker Compose files with
docker compose config - Provides skills for working with Docker Compose
Requirements
Install Docker with Compose plugin:
# macOS
brew install docker
# Linux
curl -fsSL https://get.docker.com | sh
Skills Included
- docker-compose-basics: Docker Compose configuration and usage
Hook Behavior
Validates Docker Compose files (docker-compose..yaml, compose..yaml) using docker compose config.
Skills
docker-compose-basics
Use when defining and running multi-container Docker applications with Docker Compose YAML configuration.
docker-compose-networking
Use when configuring networks and service communication in Docker Compose including bridge networks, overlay networks, service discovery, and inter-service communication.
docker-compose-production
Use when deploying Docker Compose applications to production including security hardening, resource management, health checks, logging, monitoring, and high-availability patterns.
Hooks
Stop
Runs when the main Claude Code agent has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with docker-compose.*.yaml,docker-compose.*.yml,compose.*.yaml,compose.*.yml -- docker compose config > /dev/nullSubagentStop
Runs when a Claude Code subagent (Task tool call) has finished responding.
npx -y @thebushidocollective/han hook run --fail-fast --dirs-with docker-compose.*.yaml,docker-compose.*.yml,compose.*.yaml,compose.*.yml -- docker compose config > /dev/null