/docker:docker-compose-stacksfrom docker
Shared foundational knowledge for working with Docker Compose stacks — the compose file format, services/networks/volumes/secrets, environment and .env handling, healthchecks, common operations (up/down/pull/logs/ps), and safe-change practices. Load this for any compose-based work, alongside the control-plane skill (Dockhand/Portainer/Dockge) that actually applies the changes.
Ships in docker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is the base skill that underlies every Docker control plane in this suite — Dockhand, Portainer, and
Dockge all ultimately manage compose stacks. Load it together with the tool-specific skill. Obey
the homelab-core:homelab-safety skill.
Modern compose.yaml (Compose Spec — the merged successor to legacy v2/v3). Canonical reference:
https://docs.docker.com/reference/compose-file/ (and Docker's llms.txt). Use docker compose (v2, a
plugin) not the legacy docker-compose binary.
Key sections:
services: — each container: image, environment/env_file, ports, volumes, networks,
depends_on, restart, healthcheck, labels, deploy.networks: — user-defined networks (bridge, or macvlan/ipvlan for VLAN setups — see
docker-on-proxmox).volumes: — named volumes vs bind mounts (./data:/data). Bind mounts on a Proxmox LXC host can hit
permission/idmap issues — see docker-on-proxmox.secrets:/configs: — prefer over baking secrets into env where supported.labels: — drive integrations like the NPM reverse-proxy sync (see
npm-reverse-proxy).| Intent | Command (raw CLI) | Class |
|---|---|---|
| List stacks/containers | docker compose ls, docker compose ps | read |
| Show config (resolved) | docker compose config | read |
| Logs | docker compose logs -f <svc> | read |
| Pull images | docker compose pull | significant |
| Deploy/update | docker compose up -d | significant |
| Recreate one service | docker compose up -d --force-recreate <svc> | significant |
| Stop | docker compose stop / down (down removes containers+networks) | significant |
| Remove + volumes | docker compose down -v | destructive (deletes named volumes/data) |
Through a control plane you'll usually trigger the equivalent action via its API/UI rather than the CLI — the class (read/significant/destructive) is the same and the safety gate still applies.
.env and environment handling${VAR} from a sibling .env and the shell environment..env out of version control; reference secrets via env/secret stores.healthcheck: so depends_on: condition: service_healthy works and so the control plane shows real
health, not just "running".restart: unless-stopped is the common homelab default.:latest updates silently on pull + up; for important services pin a
tag/digest so updates are intentional.down -v deletes data — treat as destructive, name the volumes at risk, confirm explicitly.ps shows healthy, logs are clean, and the service responds — don't assume success
from the deploy command exiting 0.Depends on the control plane:
/opt/stacks/<name>/compose.yaml → edit file (often filesystem/SSH).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub redth/homelab-assist --plugin docker7 skills in this plugin
/docker-on-proxmoxUnderstand and troubleshoot a Docker host running inside Proxmox — as a VM or as a privileged/unprivileged LXC — and how VLAN networking, macvlan/ipvlan, VLAN-aware bridges, and passed-through/bind-mounted storage interact across the Proxmox and Docker layers. Load this when a Docker networking or storage problem may originate at the Proxmox layer, or when planning how to host Docker on Proxmox./docker-overviewEntry point and router for managing Docker in a homelab. Load this first for any Docker request — it identifies which control plane is in use (Dockhand preferred, or Portainer/Dockge/raw Engine), establishes the version check, and routes to the right skill (compose stacks, Dockhand, reverse-proxy label routing, or Docker-on-Proxmox networking)./dockgeManage Docker compose stacks via Dockge — a file-based stack manager that stores stacks as compose files under /opt/stacks. Covers its file-on-disk model, the lack of a REST API/MCP (so operations are filesystem- or SSH-oriented), and how to edit stacks safely. Load this when the user manages Docker with Dockge./dockhandManage Docker via Dockhand — the preferred control plane in this homelab — and its Hawser remote agents. Covers the Dockhand architecture (central server + Hawser Standard/Edge agents), how to drive it (the mcp-dockhand MCP server or its REST API), compose-stack and container operations, multi-host/environment targeting, and Git-synced stacks. Load this when the user manages Docker with Dockhand./npm-reverse-proxySet up and manage domain routing for homelab services using nginx-proxy-manager (NPM) driven by Docker container labels via npm-docker-sync. Load this when the user wants to expose a container/stack at a domain, debug why a service isn't routing, or understand the label-based proxy-host automation pattern. Covers the npm.* label scheme, how sync maps containers to NPM proxy hosts, and SSL/forced-host details./portainerManage Docker (and Kubernetes) via Portainer's REST API or the official portainer-mcp server — environments/endpoints, stacks, containers/images/networks/volumes, and the Docker API proxy. Load this when the user manages Docker with Portainer rather than Dockhand.