commands.sh

podman-compose

all

Run and manage Compose Specification container definition.

More info →

Options (4)

-d, --detachboolean

Create and start all containers in the background using a local `docker-compose.yml`

Example: podman-compose up {{[-d|--detach]}}
-f, --fileboolean

Start all containers using an alternate compose file

Example: podman-compose {{[-f|--file]}} {{path/to/file.yaml}} up
-v, --volumesboolean

Remove all containers, networks, and volumes

Example: podman-compose down {{[-v|--volumes]}}
-f, --followboolean

Follow logs for a container (omit all container names)

Example: podman-compose logs {{[-f|--follow]}} {{container_name}}

Examples (8)

List all running containers

Create and start all containers in the background using a local `docker-compose.yml`

podman-compose up [-d|--detach]

Start all containers, building if needed

podman-compose up --build

Start all containers using an alternate compose file

podman-compose [-f|--file] path/to/file.yaml up

Stop all running containers

Remove all containers, networks, and volumes

podman-compose down [-v|--volumes]

Follow logs for a container (omit all container names)

podman-compose logs [-f|--follow] container_name

Run a one-time command in a service with no ports mapped

podman-compose run service_name command
made by @shridhargupta | data from tldr-pages