How to Use Docker Compose to Deploy Multi-Container Applications
Learn how to use Docker Compose to deploy and run multi-container applications
|
|
Docker Compose is a tool for defining and running multi-container applications. A typical example, and one which we will use later, would be a web server container and a database container configured to work together to provide a web application. Docker Compose then allows you to start the whole application with a single command!
You start by creating a Dockerfile, to build docker images of your application – or you can use existing images from a registry. You then define your docker services that you need to run your app in a docker-compose.yml file (see example later). Finally, you can run the whole thing using the docker-compose up command!
That was a quick introduction. In this article I will break down how we go about creating the docker-compose.yml file and how to start the services defined within it. Full Story |
This topic does not have any threads posted yet!
You cannot post until you login.