Podman Compose

1.5.0 · active · verified Thu Apr 16

Podman Compose is a Python-based tool that enables users to define and run multi-container applications using standard `docker-compose.yml` files, with Podman serving as the container engine. It offers a daemonless and rootless alternative to Docker Compose, aiming for compatibility by translating Compose specifications into Podman commands. The current version is 1.5.0, and it generally has an active release cadence with several minor versions released annually, although it is a community-maintained project not officially supported by Red Hat.

Common errors

Warnings

Install

Imports

Quickstart

After creating a `docker-compose.yml` file, use `podman-compose up -d` to start your multi-container application in detached mode. This command translates the Compose file into Podman commands to manage pods, containers, networks, and volumes.

# Create a docker-compose.yml file
# services:
#   web:
#     image: nginx
#     ports:
#       - "80:80"
#   db:
#     image: postgres:15
#     environment:
#       POSTGRES_DB: mydb
#       POSTGRES_USER: user
#       POSTGRES_PASSWORD: password

# Bring up the services
podman-compose up -d

# View logs
podman-compose logs

# Stop and remove services
podman-compose down

view raw JSON →