mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 17:47:22 +00:00
* chore(deps-dev): switch to prettier 3.6.2 Signed-off-by: Jeff MAURY <jmaury@redhat.com>
1.8 KiB
1.8 KiB
| title | description | sidebar_position | keywords | tags | ||
|---|---|---|---|---|---|---|
| Running Compose files | With Podman Desktop, you can manage multi-container applications defined in Compose files. | 3 |
|
|
With Podman Desktop, you can manage multi-container applications defined in a Compose file.
Prerequisites
- Podman 4.7.0 or greater.
- You have set up Compose.
- You have a Compose file, such as
compose.yaml.
Procedure
-
Run the command in a terminal:
$ podman compose --file compose.yaml up --detach
1. [Set the DOCKER_HOST variable](/docs/migrating-from-docker/using-the-docker_host-environment-variable). 1. Run `docker-compose` rather than `podman compose`:(Alternatively) With an older Podman version, run
docker-compose:$ docker-compose --file compose.yaml up --detach(Optionally) Learn about Compose commands:
$ podman compose --help
Verification
-
The Compose engine starts the containers and services, and adds a label to each resource:
- Container label:
com.docker.compose.project - Service label:
com.docker.compose.service
- Container label:
-
Podman Desktop detects the Compose labels, and displays the container group as a group of containers.
The Podman Desktop Containers list displays the containers created by Compose grouped in a container group with a
(compose)suffix, such asflask-redis (compose).
