Skip to content

Docker Compose plugin that validates compose files and bundles skills for networking and production deployment.

CCM score
46 of 100
GitHub stars
201
View on GitHub

Own this plugin? Claim it

What it does

  • Adds 3 skills (docker-compose-basics, docker-compose-networking, and docker-compose-production) and a validation hook on compose files
  • Validates docker-compose.*.yaml and compose.*.yaml files by running docker compose config on each
  • Covers multi-container YAML setup, bridge and overlay networks, and service discovery between services
  • Guides production deployments with security hardening, resource limits, health checks, logging, and high-availability patterns

Docker Compose validation and best practices for container orchestration

Add marketplace

/plugin marketplace add TheBushidoCollective/han

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install docker-compose@han

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Docker Compose Basics

Docker Compose for defining and running multi-container applications.

Basic Structure

version: '3.8'

services:
  web:
    image: nginx:latest
    ports:
      - "80:80"
    volumes:
      - ./html:/usr/share/nginx/html
    environment:
      - NGINX_HOST=localhost
    depends_on:
      - api
      
  api:
    build: ./api
    ports:
      - "3000:3000"
    environment:
      DATABASE_URL: postgres://db:5432/myapp
    depends_on:
      - db
      
  db:
    image: postgres:15
    volumes:
      - pgdata:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: secret
      POSTGRES_DB: myapp

volumes:
  pgdata:

Common Commands

# Start services
docker compose up

# Start in background
docker compose up -d

# Stop services
docker compose down

# View logs
docker compose logs -f

# Rebuild
docker compose build

# Execute command
docker compose exec web sh

# Scale service
docker compose up -d --scale api=3

Best Practices

Environment Variables

services:
  api:
    environment:
      - NODE_ENV=${NODE_ENV:-development}
      - API_KEY=${API_KEY}

Health Checks

services:
  web:
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost"]
      interval: 30s
      timeout: 10s
      retries: 3

Resource Limits

services:
  api:
    deploy:
      resources:
        limits:
          cpus: '0.5'
          memory: 512M

Readme

Docker Compose

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.

Installation

han plugin install docker-compose

Details

Marketplace
TheBushidoCollective/han
Source
plugins/tools/docker-compose
Category
Tool
Keywords
docker, docker-compose, containers, devops
Listed since
Apr 7, 2026

More from TheBushidoCollective/han

All 340

Similar to docker-compose

More DevOps & Cloud