Docker-Compose Explanation
Getting started with docker-compose
We'll cover the following
Introduction
Docker-compose is a tool that combines and runs multiple containers of interrelated services with a single command. It is a tool to define all the application dependencies in one place and let the Docker take care of running all of those services in just one simple command docker-compose up
.
If you are following this course on your local machine remember to install the Docker Compose from the official documentation website.
Clone the git repo using git clone https://github.com/venky8283/Docker.git . Type
git checkout 4de325cf1da2428e757be4f2bcc53f35c384c598
to get to the code used in this lesson.
Below is an example of docker-compose file that combines a MySQL database service with a Python flask app that implements a simple login and logout web application.
Get hands-on with 1400+ tech skills courses.