Claude-code-plugins-plus generating-docker-compose-files
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/jeremylongshore/claude-code-plugins-plus-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/backups/skill-structure-cleanup-20251108-073936/plugins/devops/docker-compose-generator/skills/docker-compose-generator" ~/.claude/skills/jeremylongshore-claude-code-plugins-plus-generating-docker-compose-files-13002c && rm -rf "$T"
backups/skill-structure-cleanup-20251108-073936/plugins/devops/docker-compose-generator/skills/docker-compose-generator/SKILL.mdOverview
This skill empowers Claude to create fully functional Docker Compose files, streamlining the deployment of complex applications. It automatically incorporates recommended configurations for service dependencies, data persistence, and resource optimization.
How It Works
- Receiving User Input: Claude interprets the user's request, identifying the application's architecture and dependencies.
- Generating Compose Configuration: Based on the interpreted request, Claude generates a
file defining services, networks, volumes, and other configurations.docker-compose.yml - Presenting the Configuration: Claude provides the generated
file to the user.docker-compose.yml
When to Use This Skill
This skill activates when you need to:
- Generate a Docker Compose file for a multi-container application.
- Define service dependencies and network configurations for a Docker environment.
- Manage persistent data using Docker volumes.
- Configure health checks and resource limits for Docker containers.
Examples
Example 1: Deploying a Full-Stack Application
User request: "Generate a docker-compose file for a full-stack application with a Node.js frontend, a Python backend, and a PostgreSQL database."
The skill will:
- Generate a
file defining three services:docker-compose.yml
,frontend
, andbackend
.database - Configure network connections between the services and define volumes for persistent database storage.
Example 2: Adding Health Checks
User request: "Create a docker-compose file for a Redis server with a health check."
The skill will:
- Generate a
file defining a Redis service.docker-compose.yml - Add a health check configuration to the Redis service, ensuring the container restarts if it becomes unhealthy.
Best Practices
- Service Dependencies: Explicitly define dependencies between services using the
directive.depends_on - Environment Variables: Utilize
files to manage environment variables and sensitive information..env - Volume Naming: Use named volumes for data persistence and avoid relying on host paths.
Integration
This skill integrates with other development tools by providing a standardized Docker Compose configuration that can be used with Docker CLI, Docker Desktop, and other container management platforms.