define-multi-container-compose-apps
Define multi-container applications with proper dependency handling, networking, and volume management.
от rondoflow★ 37 звёзд на GitHub
Установить define-multi-container-compose-apps в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
depends_on Ready Condition
depends_on:alone only waits for container start—service likely not ready yet- Add healthcheck + condition for actual readiness:
depends_on:
db:
condition: service_healthy
- Without healthcheck defined on target service,
service_healthyfails
Healthcheck start_period
healthcheck:
test: ["CMD", "pg_isready"]
start_period: 30s
start_period: initial grace period—health failures don't count during this time- Slow-starting services (databases, Java apps) need adequate start_period
- Without it, container marked unhealthy before it finishes initializing
Volume Destruction
docker compose downpreserves volumesdocker compose down -vDELETES ALL VOLUMES—data loss-voften added by habit from tutorials—catastrophic in production- Named volumes survive
down; anonymous volumes deleted ondown
Resource Limits in Development
deploy:
resources:
limits:
memory: 512M
- Set limits during development—catches memory issues early
- Unlimited container can consume all host memory—kills other processes
- Copy limits to production config—don't discover limits in prod
.dockerignore
- Without it:
node_modules,.git, secrets copied into image - Mirrors
.gitignoresyntax—create at same level as Dockerfile - Large build context = slow builds, large images, potential security issues
- At minimum:
.git,node_modules,.env,*.log, build artifacts
Override File Pattern
docker-compose.yml: base config that works everywheredocker-compose.override.yml: auto-loaded, development-specific (mounts, ports)- Production:
docker compose -f docker-compose.yml -f docker-compose.prod.yml up - Keep secrets and environment-specific config in override files, not base
Profiles for Optional Services
services:
mailhog:
profiles: [dev]
- Services with profiles don't start by default—cleaner
docker compose up - Enable with
--profile dev - Use for: test databases, debug tools, mock services, admin interfaces
Environment Variable Precedence
- Shell environment (highest)
.envfile in compose directoryenv_file:directiveenvironment:in compose file (lowest for that var)
.envmust be exactly.env—.env.localnot auto-loaded- Debug with
docker compose config—shows resolved values
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл define-multi-container-compose-apps?
Define multi-container applications with proper dependency handling, networking, and volume management.
Как установить скилл define-multi-container-compose-apps?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл define-multi-container-compose-apps запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…