Compose Bridge 概要
Compose Bridge は Docker Compose 設定を、Kubernetes マニフェストのようなプラットフォーム固有のデプロイフォーマットへと変換するものです。 デフォルトでは以下を生成します。
- Kubernetes マニフェスト
- Kustomize オーバーレイ
この出力は Kubernetes 機能を有効 にした Docker Desktop 上において、すぐにデプロイできるものとなっています。
Compose Bridge は Compose と Kubernetes の違いを埋め合わせるものです。 Compose の簡易さと効率性を保ちつつ、Kubernetes への適用を容易にします。
デフォルトの変換 が利用でき、プロジェクトの要請や要件に従った カスタム変換の生成 が利用できる、柔軟性を備えたツールです。
どのように動くか
Compose Bridge は Compose モデルを別形式に変換する機能を利用しています。
変換処理は Docker イメージとしてパッケージされるものであり、/in/compose.yaml として完全に集約された Compose モデルを入力とします。
そして /out のもとに対象フォーマットファイルを生成します。
Compose Bridge では Kubernetes への変換処理を Go テンプレートを用いて独自に提供しています。 このため独自のテンプレートに置き換えたり追加したりすることによって、カスタマイズし拡張することが容易となっています。
変換処理がどのように動作するのか、あるいはプロジェクト向けにどのようにカスタマイズするのかについては カスタマイズ を参照してください。
Compose Bridge は、Docker Model Runner を通じて LLM を利用するアプリケーションもサポートします。
詳しくは Model Runner の利用 を参照してください。
Apply organizational standards at scale
Compose Bridge supports custom transformation templates, which lets platform teams encode
organizational standards once and apply them consistently whenever a compose.yaml file
is converted to Kubernetes manifests or other formats.
Developers continue to write standard Compose files. During conversion, Compose Bridge runs your custom transformation and automatically injects the required security contexts, resource limits, labels, and network policies into the output manifests — without requiring developers to know or manage those details.
When your requirements change, update the transformation template in one place. Every team picks up the changes on their next conversion, with no edits to individual Compose files.
This separation of concerns keeps developers focused on application configuration, while platform teams control governance and enforce policy through the transformation layer.
To get started, see Customize Compose Bridge.