How to Use Docker Compose to Deploy Multi-Container Applications

Posted by bvirt on Dec 12, 2020 2:32 PM EDT
buildvirtual.net; By Nick
Mail this story
Print this story

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

  Nav
» Read more about: Story Type: Tutorial

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.