← ClaudeAtlas

docker-composelisted

Use this skill when authoring or editing Docker Compose files (compose.yaml / docker-compose.yml), running multi-container stacks, or containerizing a Drupal/PHP application — e.g. "set up a local Drupal stack with nginx and MariaDB", "add Redis to my compose file", "why won't my containers start", "split dev and prod compose configuration". Also trigger for compose commands (up, down, logs, exec, watch) and healthcheck/dependency issues between services.
siva01c/claude-plugins · ★ 16 · DevOps & Infrastructure · score 78
Install: claude install-skill siva01c/claude-plugins
# Docker Compose Skill Docker Compose defines and runs multi-container applications from a single `compose.yaml` file. This skill covers authoring the file, operating the stack, and structuring configuration for development vs production, with a typical Drupal stack (php-fpm, nginx, MariaDB, Redis) as the working example. --- ## compose.yaml essentials - The canonical filename is `compose.yaml` (`docker-compose.yml` still works). - **Do not add a top-level `version:` key** — it is obsolete and ignored by Compose v2; linters flag it. - Services, networks, and volumes are declared at the top level. ### Drupal stack example ```yaml services: php: build: context: . dockerfile: docker/php/Dockerfile volumes: - ./:/var/www/html - drupal-files:/var/www/html/web/sites/default/files environment: DRUPAL_DB_HOST: db DRUPAL_DB_NAME: drupal DRUPAL_DB_USER: drupal env_file: - .env depends_on: db: condition: service_healthy redis: condition: service_started web: image: nginx:1.27-alpine ports: - "8080:80" volumes: - ./:/var/www/html:ro - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro depends_on: - php db: image: mariadb:11.4 environment: MARIADB_DATABASE: drupal MARIADB_USER: drupal MARIADB_PASSWORD: ${DB_PASSWORD:?set DB_PASSWORD in .env} MARIADB_ROOT_PASSWORD: ${DB_ROOT_PASSWORD:?set DB_ROOT_P