Share via


Tutorial: Create a multi-container app with Docker Compose

In this tutorial, you learn how to manage more than one container and communicate between them when using Container Tools in Visual Studio. Managing multiple containers requires container orchestration and requires an orchestrator such as Docker Compose. For these procedures, you use Docker Compose. Docker Compose is great for local debugging and testing in the course of the development cycle.

Prerequisites

Create a Web Application project

In Visual Studio, create an ASP.NET Core Web App project, named WebFrontEnd, to create a web application with Razor pages.

Create a Web API project

Add code to call the Web API

Next steps

Look at the options for deploying your containers to Azure. If you're ready to deploy to Azure Container Apps, see Deploy a multicontainer app to Azure Container Apps.

See also

Docker Compose

Container Tools