10 Running multiple environments with Docker Compose

We looked at Docker Compose in chapter 7, and you gained a good understanding of how to use YAML to describe a multi-container application and manage it with the Compose command line. Since then we’ve enhanced our Docker applications to get them ready for production with health checks and monitoring. Now it’s time to return to Compose, because we don’t need all those production features in every environment. Portability is one of Docker’s major benefits. When you package your application to run in containers, it works the same way wherever you deploy it, and that’s important because it eliminates drift between environments.

Drift is what always happens when manual processes are used to deploy ...

Get Learn Docker in a Month of Lunches now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.