Docker Compose
Introduction to Docker Compose
What is Docker Compose?
Compose is a tool for defining and running multi-container Docker applications. With Compose, we use a YAML file to configure our application’s services. Then, with a single command, we create and start all the services from our configuration.
A tool for defining and running multi-container Docker applications
With Compose we use a YAML file to configure our application's services
Compose works in environments: production, staging, development, testing, as well as CI workflows.
With a single command, we can create and start all the services from our configuration.
Docker Compose is a 3 steps process
Define our app's environment with a Dockerfile so it can be reproduced anywhere.
Define the services that make up our app in docker-compose.yml so they can be run together in an isolated environment.
Run docker-compose up and Compose starts and runs our entire app.
$ docker-compose up
Building Blocks of Docker Compose
Last updated
Was this helpful?