# 使用 Homebrew 安装 docker-compose-langserver

查看 docker-compose-langserver 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:docker-compose-langserver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-compose-langserver
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:docker-compose-langserver
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/docker-compose-langserver>
- **版本:** 1.0.0
- **来源摘要:** Language service for Docker Compose documents
- **主页:** <https://github.com/microsoft/vscode-containers>
- **仓库:** <https://github.com/microsoft/vscode-containers>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/@microsoft/compose-language-service/-/compose-language-service-1.0.0.tgz>
- **最后更新:** 2026-07-31T14:28:26Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- docker-compose-langserver (cli)
- docker-compose-langserver (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.0
- 管理器更新时间: 2026-07-31
- 本地数据: OK
- 上游仓库: https://github.com/microsoft/vscode-containers
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Docker Compose Language Service is Microsoft's Language Server Protocol implementation for Docker Compose documents. The README says it is shipped in the Visual Studio Code Container Tools extension and provides completions, signatures, diagnostics, formatting, hover hints, and Docker-specific image hyperlinks.

### 项目历史

The changelog shows the language service beginning with a 0.0.1-alpha release in September 2021, focused on Compose YAML editing features such as Docker Hub links, hover information, signature help, completions, diagnostics, and formatting. Later releases added more completion coverage, an executable language-server entry point, alternate YAML language service integration, CodeLens support, and package entry points for client and VS Code use.

### 采用历史

The primary adoption route is editor integration through Microsoft's Container Tools extension for VS Code, with the npm package and docker-compose-langserver executable making it usable by other LSP clients. Homebrew packaging turns that language-server executable into a simple install for Vim, Neovim, Emacs, and other editor setups that prefer system package managers.

### 使用方式

The package is used by editors and LSP clients to understand Compose files, especially Compose file version 3 style documents. It supplies YAML-aware editing assistance rather than running containers itself, and the README notes that VS Code-specific telemetry events can be ignored by non-VS Code clients.

### 为什么软件包爱好者会关心

This package matters to package nerds because it exposes an editor language service as a standalone CLI executable. That lets users assemble their own editor toolchains with Homebrew and LSP configuration instead of installing a full IDE extension stack.

### 时间线

- 2021: 0.0.1-alpha initial release adds Compose editing features.
- 2023: 0.1.3 adds an executable to launch the language server.
- 2024: 0.3.0 adds CodeLenses for starting Compose services from documents.
- 2026: 0.5.0 adds client and VS Code entry points plus an ESM build.

### Related projects

- The project is related to Docker Compose, the Compose specification, Microsoft's VS Code Container Tools extension, YAML language services, and generic Language Server Protocol clients.

### 来源

- <https://github.com/microsoft/compose-language-service#readme>
- <https://github.com/microsoft/compose-language-service/blob/main/CHANGELOG.md>
- <https://github.com/microsoft/compose-language-service/blob/main/package.json>
- <https://formulae.brew.sh/formula/docker-compose-langserver>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** docker-compose-langserver
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [ansible-language-server](https://pkg.so/zh-hans/brew/ansible-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp, vscode.
- [actions-languageserver](https://pkg.so/zh-hans/brew/actions-languageserver/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp, yaml.
- [lua-language-server](https://pkg.so/zh-hans/brew/lua-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [gopls](https://pkg.so/zh-hans/brew/gopls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [python-lsp-server](https://pkg.so/zh-hans/brew/python-lsp-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [marksman](https://pkg.so/zh-hans/brew/marksman/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [bash-language-server](https://pkg.so/zh-hans/brew/bash-language-server/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [elixir-ls](https://pkg.so/zh-hans/brew/elixir-ls/) - Shares pkgdb curated category or tags: cli, developer-tools, language-server, lsp.
- [dockerfile-language-server](https://pkg.so/zh-hans/brew/dockerfile-language-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, docker, langserver.

## Combined YAML source

View the package source record on GitHub. [combined/docker-compose-langserver.yml](https://github.com/mxcl/pkgdb/blob/main/combined/docker-compose-langserver.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
