generating-docker-compose-files
About
This skill generates production-ready Docker Compose configurations for multi-container applications. It creates service definitions with networks, volumes, health checks, and resource limits following best practices. Use it when a user requests a docker-compose file or describes a multi-service architecture needing orchestration.
Quick Install
Claude Code
Recommended/plugin add https://github.com/jeremylongshore/claude-code-plugins-plusgit clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/generating-docker-compose-filesCopy and paste this command in Claude Code to install this skill
Documentation
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
- 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
docker-compose.ymlfile defining services, networks, volumes, and other configurations. - Presenting the Configuration: Claude provides the generated
docker-compose.ymlfile 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:
- Generate a
docker-compose.ymlfile defining three services:frontend,backend, anddatabase. - 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
docker-compose.ymlfile defining a Redis service. - 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_ondirective. - Environment Variables: Utilize
.envfiles 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 Repository
Related Skills
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
llamaguard
OtherLlamaGuard is Meta's 7-8B parameter model for moderating LLM inputs and outputs across six safety categories like violence and hate speech. It offers 94-95% accuracy and can be deployed using vLLM, Hugging Face, or Amazon SageMaker. Use this skill to easily integrate content filtering and safety guardrails into your AI applications.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
