Agent SkillsAgent Skills
jeremylongshore

docker-compose-generator

@jeremylongshore/docker-compose-generator
jeremylongshore
2,103
284 forks
Updated 5/5/2026
View on GitHub

generating-docker-compose-files: This skill enables Claude to generate Docker Compose configurations for multi-container applications. It leverages best practices for production-ready deployments, including defining services, networks, volumes, health checks, and resource limits. Claude should use this skill when the user requests a Docker Compose file, specifies application architecture involving multiple containers, or mentions needs for container orchestration, environment variables, or persistent data management in a Docker environment. Trigger terms include "docker-compose", "docker compose file", "multi-container", "container orchestration", "docker environment", "service definition", "volume management", "network configuration", "health checks", "resource limits", and ".env files".

Installation

$npx agent-skills-cli install @jeremylongshore/docker-compose-generator
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathbackups/skills-batch-20251204-000554/plugins/devops/docker-compose-generator/skills/docker-compose-generator/SKILL.md
Branchmain
Scoped Name@jeremylongshore/docker-compose-generator

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


name: generating-docker-compose-files description: | This skill enables Claude to generate Docker Compose configurations for multi-container applications. It leverages best practices for production-ready deployments, including defining services, networks, volumes, health checks, and resource limits. Claude should use this skill when the user requests a Docker Compose file, specifies application architecture involving multiple containers, or mentions needs for container orchestration, environment variables, or persistent data management in a Docker environment. Trigger terms include "docker-compose", "docker compose file", "multi-container", "container orchestration", "docker environment", "service definition", "volume management", "network configuration", "health checks", "resource limits", and ".env files". allowed-tools: Read, Write, Edit, Grep, Glob, Bash version: 1.0.0

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.

More by jeremylongshore

View all
environment-config-manager
2,103

managing-environment-configurations: This skill enables Claude to manage environment configurations and secrets across different deployments using the environment-config-manager plugin. It is invoked when the user needs to generate, update, or retrieve configuration settings for various environments (e.g., development, staging, production). Use this skill when the user explicitly mentions "environment configuration," "secrets management," "deployment configuration," or asks to "generate config files". It helps streamline DevOps workflows by providing production-ready configurations based on best practices.

fairdb-backup-manager
2,103

Automatically manages PostgreSQL backups with pgBackRest and Wasabi S3 storage when working with FairDB databases Activates when you request "fairdb backup manager" functionality.

git-commit-smart
2,103

generating-smart-commits: This skill generates conventional commit messages using AI analysis of staged Git changes. It automatically determines the commit type (feat, fix, docs, etc.), identifies breaking changes, and formats the message according to conventional commit standards. Use this when asked to create a commit message, write a Git commit, or when the user uses the `/commit-smart` or `/gc` command. It is especially useful after changes have been staged with `git add`.

log-aggregation-setup
2,103

setting-up-log-aggregation: This skill sets up log aggregation solutions using ELK (Elasticsearch, Logstash, Kibana), Loki, or Splunk. It generates production-ready configurations and setup code based on specific requirements and infrastructure. Use this skill when the user requests to set up logging infrastructure, configure log aggregation, deploy ELK stack, deploy Loki, deploy Splunk, or needs help with observability. It is triggered by terms like "log aggregation," "ELK setup," "Loki configuration," "Splunk deployment," or similar requests for centralized logging solutions.