MCP HubMCP Hub
返回技能列表

generating-docker-compose-files

jeremylongshore
更新于 Today
80 次查看
712
74
712
在 GitHub 上查看
aidata

关于

This skill generates production-ready Docker Compose configurations for multi-container applications. It creates service definitions with best practices like health checks, resource limits, networks, and volume management. Use it when users request Docker Compose files or specify multi-container orchestration needs.

快速安装

Claude Code

推荐
插件命令推荐
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git 克隆备选方式
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/generating-docker-compose-files

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Overview

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

  1. Receiving User Input: Claude interprets the user's request, identifying the application's architecture and dependencies.
  2. Generating Compose Configuration: Based on the interpreted request, Claude generates a docker-compose.yml file defining services, networks, volumes, and other configurations.
  3. Presenting the Configuration: Claude provides the generated docker-compose.yml file to the user.

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:

  1. Generate a docker-compose.yml file defining three services: frontend, backend, and database.
  2. 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:

  1. Generate a docker-compose.yml file defining a Redis service.
  2. 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 depends_on directive.
  • Environment Variables: Utilize .env files to manage environment variables and sensitive information.
  • 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.

GitHub 仓库

jeremylongshore/claude-code-plugins-plus
路径: backups/skills-batch-20251204-000554/plugins/devops/docker-compose-generator/skills/docker-compose-generator
aiautomationclaude-codedevopsmarketplacemcp

相关推荐技能