Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/opengis-skills --skill docker-composegit clone --depth 1 https://github.com/znlgis/opengis-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/docker-compose)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/docker-compose"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/docker-compose/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/docker-compose"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/docker-compose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.03392 |
| Opus 5.5 | $0.00025 | $0.01357 |
| Sonnet 5.5 | $0.00013 | $0.00678 |
| Haiku 4.5 | $0.00006 | $0.00339 |
Grade B, and why
docker-compose scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt-get update How it starts
The opening of the file, as written. The whole thing — 349 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/docker/compose
官方文档: https://docs.docker.com/compose/
许可证: Apache-2.0 | 最新版本: v5.6.0
概述
Docker Compose 是定义和运行多容器 Docker 应用的工具。它用单个 YAML 文件(默认 compose.yaml)描述应用的服务、网络与卷,再用一条命令统一构建、启动、停止和查看。Compose 是 Compose Specification 的参考实现,旧的 2.x / 3.x 文件格式已并入统一规范,不再需要顶层 version: 字段。它面向单机(单 Docker 引擎)编排,是开发环境与单服务器部署的常用方案。
主要能力:
- 声明式编排:在
compose.yaml中定义services/networks/volumes,配置即代码 - 生命周期管理:
up/down/ps/logs/exec统一管理全部容器 - 与 Dockerfile 协作:
build从源码构建镜像,image直接拉取现成镜像 - 配置注入:
environment/env_file/.env配合变量插值 - 启动顺序控制:
depends_on+healthcheck等待依赖就绪 - 分组开关:
profiles按场景启用调试或工具类服务 - 多文件叠加:
-f base.yaml -f override.yaml按环境分层覆盖
环境准备
Compose v2+ 以插件形式随 Docker CLI 提供,命令为 docker compose(空格,区别于已停止维护的旧版 docker-compose)。
Docker Desktop(Windows / macOS)
- 安装 Docker Desktop 即自带 Compose 插件与 Docker Engine,无需单独安装。
- 启动 Docker Desktop 后,终端即可使用
docker compose。
Linux(Docker Engine + compose 插件)
# Debian / Ubuntu
sudo apt-get update
sudo apt-get install docker-compose-plugin
# RHEL / CentOS / Fedora(dnf 或 yum)
sudo dnf install docker-compose-plugin
# 或
sudo yum install docker-compose-plugin
验证
docker compose version
# 预期输出:Docker Compose version v5.6.0
独立的
docker-compose(v1,Python 实现)已停止维护,请使用 v2+ 的docker compose子命令。
核心 API/命令
compose.yaml 顶层结构
name: myapp # 项目名,默认取所在目录名
services: # 必填:服务(容器)集合
web:
image: nginx:1.27
networks: # 可选:自定义网络
frontend:
volumes: # 可选:命名卷,供多个服务复用
db-data:
services:每个条目定义一个容器及其运行时配置networks:定义服务之间通信的网络,默认自动创建default网络volumes:定义命名卷;跨服务复用的卷必须在此声明configs/secrets:挂载配置文件与敏感数据(可选)
服务常用字段
services:
web:
image: nginx:1.27 # 直接使用现成镜像
# build: . # 或从 Dockerfile 构建(二选一)
ports:
- "8080:80" # 短语法 HOST:CONTAINER
volumes:
- ./html:/usr/share/nginx/html # bind mount(宿主机目录)
- static:/app/static # named volume(需顶层声明)
environment:
APP_ENV: production
env_file:
- .env
depends_on:
db:
condition: service_healthy
restart: unless-stopped
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 349 lines · 63 tokens per session scan B 9f1259bef910
docker-compose is a skill published in the GitHub repository znlgis/opengis-skills (68 stars, last pushed yesterday), licensed MIT. It adds 63 tokens to every session and 3,392 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
Other skills, from other repositories
docker-compose
Multi-service docker-compose orchestration — service dependency ordering, profiles, override files, environment-specific configs, rolling restarts, and compose-based dev/prod parity patterns.
docker-containerization
Containerize applications with multi-stage Dockerfiles, Docker Compose orchestration, image optimization, and container security. Covers Python, Node.js, and multi-service architectures. Triggers on Docker, containerization, or container orchestration requests.
docker-docs
Comprehensive Docker 28.x reference covering all features: installation, Dockerfile instructions, multi-stage builds, Docker Compose, networking, volumes, CLI commands, image management, registries, security best practices, CI/CD integration, debugging, and Kubernetes migration. Use whenever the user mentions Docker…
docker-essentials
Create and optimize Dockerfiles, docker-compose configurations, and container workflows. Use when containerizing applications, setting up development environments, or optimizing Docker builds.
xcloud-docker-deploy
Skill "xcloud-docker-deploy" from Asif2BD/xCloud-Docker-Deploy-Skill, covering xcloud docker deploy v1.4.1, start here, how xcloud works, current xcloud api + agent skills context and api token flow.
harbor
CLI toolkit for managing containerized LLM services. Use when the user wants to start, stop, configure, or manage AI/LLM services like Ollama, Open WebUI, llama.cpp, vLLM, LiteLLM, ComfyUI, and 250+ others. Triggers on requests to "run a model", "start ollama", "set up an LLM", "configure harbor", "manage services"…