Token导航 LogoToken导航TokenDH.com
运维和基础设施敏感数据github未标认证来源可访问clear审计提醒

generating-docker-compose-filesgenerating Docker compose files 部署

Agent Skill

用于辅助云资源、部署、容器、基础设施和运维自动化任务。它适合让 Agent 检查配置、整理部署步骤、分析资源状态、生成排障思路或辅助云服务接入。使用时需要明确目标环境、账号权限、区域和资源组,区分本地测试与生产操作;涉及删除资源、重启服务、修改网络或权限配置时,应先确认影响范围。

总安装

659

周安装

28

GitHub Stars

2,093

下载量

231
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:generating-docker-compose-files(generating Docker compose files 部署)
来源仓库:https://github.com/jeremylongshore/claude-code-plugins-plus-skills
仓库路径:skills/generating-docker-compose-files
安装命令:
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill generating-docker-compose-files
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus-skills --skill generating-docker-compose-files

简介

用于辅助云资源、容器部署和基础设施自动化任务。

  • 可检查配置、整理部署步骤或分析资源状态。
  • 通过 npx skills add 命令从 GitHub 仓库安装。
  • 使用时需明确目标环境和账号权限,避免误删资源或修改网络配置。
  • generating-docker-compose-files 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Generating Docker Compose Files

Overview

Generate production-ready docker-compose.yml files for multi-container applications. Define services, networks, volumes, health checks, resource limits, and environment-specific overrides for local development, testing, and single-host production deployments.

Prerequisites

  • Docker Engine 20.10+ and Docker Compose v2 (docker compose version)
  • Application Dockerfiles for each service or pre-built images available
  • Understanding of service dependencies and inter-service communication ports
  • Environment variable values or .env files for configuration
  • Sufficient disk space and memory for all containers defined in the stack

Instructions

  1. Scan the project for existing Dockerfiles, docker-compose*.yml files, and application entry points
  2. Identify all services that compose the application stack (web server, API, database, cache, message queue, worker)
  3. Define each service with image or build context, port mappings, and environment variables
  4. Configure service dependencies using depends_on with health check conditions to ensure proper startup order
  5. Create named volumes for persistent data (database files, uploads, cache) and bind mounts for development hot-reload
  6. Define custom bridge networks to isolate service groups (frontend, backend, data tier)
  7. Add health checks for each service to enable dependency-aware startup and container orchestrator integration
  8. Set resource limits (deploy.resources.limits) for CPU and memory to prevent a single container from exhausting the host
  9. Create environment-specific override files: docker-compose.override.yml for development, docker-compose.prod.yml for production
  10. Validate the configuration with docker compose config to check for syntax errors

Output

  • docker-compose.yml with service definitions, networks, and volumes
  • Environment-specific override files (docker-compose.override.yml, docker-compose.prod.yml)
  • .env file template with documented variables
  • Dockerfiles for services that require custom builds
  • Helper scripts for common operations (start.sh, stop.sh, logs.sh)

Error Handling

ErrorCauseSolution
port is already allocatedAnother container or host process using the same portChange the host port mapping or stop the conflicting process
network not foundReferenced network not defined in the compose fileAdd the network under the top-level networks: key
service depends on undefined serviceTypo in depends_on or missing service definitionVerify service names match exactly between depends_on and service definitions
volume mount permission deniedHost directory owned by different user than container processUse user: directive in service or set proper ownership with an init script
OOM killedContainer exceeded memory limitIncrease deploy.resources.limits.memory or optimize application memory usage

Examples

  • "Generate a docker-compose.yml for a Node.js API + PostgreSQL + Redis stack with health checks, named volumes, and a development override with hot-reload."
  • "Create a compose file for a WordPress site with MySQL, Nginx reverse proxy, and Certbot for automatic SSL certificate renewal."
  • "Build a docker-compose stack for a microservices app with 3 APIs, RabbitMQ message broker, and a shared Postgres database with isolated networks."

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

83.16%
按下载量换算192

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills