Skip to Content
Cloud Native Python
book

Cloud Native Python

by Manish Sethi
July 2017
Intermediate to advanced
374 pages
8h
English
Packt Publishing
Content preview from Cloud Native Python

Docker Compose

As per the official Docker Compose website (https://docs.docker.com/compose/overview/), Compose is a tool for defining and running multicontainer Docker applications. With Compose, you use a Compose file to configure your application's services.

In simpler terms, it helps us build and run our application in a much simpler and faster way.

In the previous section, where we were deploying our application and building the images, we first created a Dockerfile and then executed the Docker build command to build it. Once it is built, we usually use the docker run command to spin up the container, but, instead of that, in Docker Compose, we will define a .yml file with config details, such as ports, command to execute, and so on. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python for DevOps

Python for DevOps

Noah Gift, Kennedy Behrman, Alfredo Deza, Grig Gheorghiu
Cloud Native

Cloud Native

Boris Scholl, Trent Swanson, Peter Jausovec

Publisher Resources

ISBN: 9781787129313Supplemental Content