liveBook · Manning

Docker Compose

As explained in Quarkus in Action

Docker Compose is a tool for defining and running multi-container applications from a declarative configuration file.

Docker Compose defines and runs a group of containers from a declarative configuration file. It is useful when local production needs several infrastructure providers to start and be managed together rather than being supplied automatically by Dev Services. section 11.1.1

A Compose deployment can replace development-time providers with production-oriented services, such as Strimzi Kafka with Zookeeper and Keycloak backed by PostgreSQL. The resulting application infrastructure may require substantially more containers and configuration. section 11.1.1

Start and stop the infrastructure

Start the services defined in the Compose file with `docker compose -f docker-compose-files/docker-compose-infra.yml up`. If the process leaves containers running, use the corresponding `down` command to stop and remove all defined containers.

How Quarkus in Action covers it

How deep it goes
Shows file-based deployment, startup and teardown commands, container inspection, and configuration changes, but not Compose syntax internals.
Examples
Uses an infrastructure Compose file, twelve named containers, and explicit startup and shutdown commands.
What you can do after
Operate/configure a multi-container infrastructure deployment with the Docker Compose command-line interface.
How it connects
Connects Dev Services with Kafka, Zookeeper, Keycloak, PostgreSQL, MongoDB, RabbitMQ, Jaeger, Prometheus, and Grafana.

Also explained in

Compare how 15 books explain Docker Compose →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.