docker-compose-bake-ecr-skill
Installation
SKILL.md
Docker Compose, Bake, and ECR Skill
Use when configuring Docker Compose services, writing Docker Bake files for CI/CD builds, or managing ECR image repositories. Covers modern Compose features, Bake HCL syntax, and ECR caching strategies.
Docker Compose (Modern Features)
YAML anchors and aliases
Reduce duplication with anchors (&name) and aliases (*name). Use x- prefix for reusable fragments:
# Define reusable fragments with x- prefix (not rendered as services)
x-common-env: &common-env
LOG_LEVEL: ${LOG_LEVEL:-INFO}
DEVELOPER_ID: ${USER:-}