Skip to content

Commit ce33d06

Browse files
aevesdockersarahsanders-docker
authored andcommitted
Compose: more freshness (docker#22929)
<!--Delete sections as needed --> ## Description Freshness for Bridge, Support and releases ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent d2fcb22 commit ce33d06

File tree

5 files changed

+25
-22
lines changed

5 files changed

+25
-22
lines changed

content/manuals/compose/bridge/_index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
description: Understand what Compose Bridge is and how it can be useful
3-
keywords: compose, orchestration, kubernetes, bridge
2+
description: Learn how Compose Bridge transforms Docker Compose files into Kubernetes manifests for seamless platform transitions
3+
keywords: docker compose bridge, compose to kubernetes, docker compose kubernetes integration, docker compose kustomize, compose bridge docker desktop
44
title: Overview of Compose Bridge
55
linkTitle: Compose Bridge
66
weight: 50
77
---
88

99
{{< summary-bar feature_name="Compose bridge" >}}
1010

11-
Compose Bridge lets you transform your Compose configuration file into configuration files for different platforms, primarily focusing on Kubernetes. The default transformation generates Kubernetes manifests and a Kustomize overlay which are designed for deployment on Docker Desktop with Kubernetes enabled.
11+
Compose Bridge converts your Docker Compose configuration into platform-specific formats—primarily Kubernetes manifests. The default transformation generates Kubernetes manifests and a Kustomize overlay which are designed for deployment on Docker Desktop with Kubernetes enabled.
1212

1313
It's a flexible tool that lets you either take advantage of the [default transformation](usage.md) or [create a custom transformation](customize.md) to suit specific project needs and requirements.
1414

content/manuals/compose/bridge/customize.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22
title: Customize Compose Bridge
33
linkTitle: Customize
44
weight: 20
5-
description: Learn about the Compose Bridge templates syntax
6-
keywords: compose, bridge, templates
5+
description: Learn how to customize Compose Bridge transformations using Go templates and Compose extensions
6+
keywords: docker compose bridge, customize compose bridge, compose bridge templates, compose to kubernetes, compose bridge transformation, go templates docker
7+
78
---
89

910
{{< summary-bar feature_name="Compose bridge" >}}
1011

11-
This page explains how Compose Bridge utilizes templating to efficiently translate Docker Compose files into Kubernetes manifests. It also explain how you can customize these templates for your specific requirements and needs, or how you can build your own transformation.
12+
This page explains how Compose Bridge utilizes templating to efficiently translate Docker Compose files into Kubernetes manifests. It also explains how you can customize these templates for your specific requirements and needs, or how you can build your own transformation.
1213

1314
## How it works
1415

1516
Compose bridge uses transformations to let you convert a Compose model into another form.
1617

1718
A transformation is packaged as a Docker image that receives the fully-resolved Compose model as `/in/compose.yaml` and can produce any target format file under `/out`.
1819

19-
Compose Bridge provides its transformation for Kubernetes using Go templates, so that it is easy to extend for customization by just replacing or appending your own templates.
20+
Compose Bridge includes a default Kubernetes transformation using Go templates, which you can customize by replacing or extending templates.
2021

2122
### Syntax
2223

23-
Compose Bridge make use of templates to transform a Compose configuration file into Kubernetes manifests. Templates are plain text files that use the [Go templating syntax](https://pkg.go.dev/text/template). This enables the insertion of logic and data, making the templates dynamic and adaptable according to the Compose model.
24+
Compose Bridge makes use of templates to transform a Compose configuration file into Kubernetes manifests. Templates are plain text files that use the [Go templating syntax](https://pkg.go.dev/text/template). This enables the insertion of logic and data, making the templates dynamic and adaptable according to the Compose model.
2425

2526
When a template is executed, it must produce a YAML file which is the standard format for Kubernetes manifests. Multiple files can be generated as long as they are separated by `---`
2627

@@ -44,7 +45,7 @@ key: value
4445

4546
### Input
4647

47-
The input Compose model is the canonical YAML model you can get by running `docker compose config`. Within the templates, data from the `compose.yaml` is accessed using dot notation, allowing you to navigate through nested data structures. For example, to access the deployment mode of a service, you would use `service.deploy.mode`:
48+
You can generate the input model by running `docker compose config`. This canonical YAML output serves as the input for Compose Bridge transformations. Within the templates, data from the `compose.yaml` is accessed using dot notation, allowing you to navigate through nested data structures. For example, to access the deployment mode of a service, you would use `service.deploy.mode`:
4849

4950
```yaml
5051
# iterate over a yaml sequence
@@ -86,7 +87,7 @@ In the following example, the template checks if a healthcheck interval is speci
8687
As Kubernetes is a versatile platform, there are many ways
8788
to map Compose concepts into Kubernetes resource definitions. Compose
8889
Bridge lets you customize the transformation to match your own infrastructure
89-
decisions and preferences, with various level of flexibility and effort.
90+
decisions and preferences, with varying level of flexibility and effort.
9091

9192
### Modify the default templates
9293

content/manuals/compose/bridge/usage.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
title: Use the default Compose Bridge transformation
33
linkTitle: Usage
44
weight: 10
5-
description: Learn about and use the Compose Bridge default transformation
6-
keywords: compose, bridge, kubernetes
5+
description: Learn how to use the default Compose Bridge transformation to convert Compose files into Kubernetes manifests
6+
keywords: docker compose bridge, compose kubernetes transform, kubernetes from compose, compose bridge convert, compose.yaml to kubernetes
77
---
88

99
{{< summary-bar feature_name="Compose bridge" >}}
1010

11-
Compose Bridge supplies an out-of-the box transformation for your Compose configuration file. Based on an arbitrary `compose.yaml` file, Compose Bridge produces:
11+
Compose Bridge supplies an out-of-the-box transformation for your Compose configuration file. Based on an arbitrary `compose.yaml` file, Compose Bridge produces:
1212

1313
- A [Namespace](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/) so all your resources are isolated and don't conflict with resources from other deployments.
1414
- A [ConfigMap](https://kubernetes.io/docs/concepts/configuration/configmap/) with an entry for each and every [config](/reference/compose-file/configs.md) resource in your Compose application.
@@ -34,7 +34,8 @@ $ docker compose bridge convert
3434

3535
Compose looks for a `compose.yaml` file inside the current directory and then converts it.
3636

37-
The following output is displayed
37+
When successful, Compose Bridge generates Kubernetes manifests and logs output similar to the following:
38+
3839
```console
3940
$ docker compose bridge convert -f compose.yaml
4041
Kubernetes resource api-deployment.yaml created
@@ -62,7 +63,7 @@ These files are then stored within your project in the `/out` folder.
6263
The Kubernetes manifests can then be used to run the application on Kubernetes using
6364
the standard deployment command `kubectl apply -k out/overlays/desktop/`.
6465

65-
> [!NOTE]
66+
> [!IMPORTANT]
6667
>
6768
> Make sure you have enabled Kubernetes in Docker Desktop before you deploy your Compose Bridge transformations.
6869
@@ -80,7 +81,7 @@ $ docker compose bridge convert --help
8081

8182
> [!TIP]
8283
>
83-
> You can now convert and deploy your Compose project to a Kubernetes cluster from the Compose file viewer.
84+
> You can convert and deploy your Compose project to a Kubernetes cluster from the Compose file viewer.
8485
>
8586
> Make sure you are signed in to your Docker account, navigate to your container in the **Containers** view, and in the top-right corner select **View configurations** and then **Convert and Deploy to Kubernetes**.
8687

content/manuals/compose/releases/migrate.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
2-
title: Migrate to Compose v2
2+
linkTitle: Migrate to Compose v2
3+
Title: Migrate from Docker Compose v1 to v2
34
weight: 20
4-
description: How to migrate from Compose v1 to v2
5-
keywords: compose, upgrade, migration, v1, v2, docker compose vs docker-compose
5+
description: Step-by-step guidance to migrate from Compose v1 to v2, including syntax differences, environment handling, and CLI changes
6+
keywords: migrate docker compose, upgrade docker compose v2, docker compose migration, docker compose v1 vs v2, docker compose CLI changes, docker-compose to docker compose
67
aliases:
78
- /compose/compose-v2/
89
- /compose/cli-command-compatibility/

content/manuals/compose/support-and-feedback/faq.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: Frequently asked questions for Docker Compose
3-
keywords: documentation, docs, docker, compose, faq, docker compose vs docker-compose
4-
title: Compose FAQs
2+
description: Answers to common questions about Docker Compose, including v1 vs v2, commands, shutdown behavior, and development setup.
3+
keywords: docker compose faq, docker compose questions, docker-compose vs docker compose, docker compose json, docker compose stop delay, run multiple docker compose
4+
title: Frequently asked questions about Docker Compose
55
linkTitle: FAQs
66
weight: 10
77
tags: [FAQ]

0 commit comments

Comments
 (0)