Return to site

Docker for mac http api

broken image
broken image
broken image

NET Core API template includes a controller that allows us to handle RESTful requests. Next we will create a second project which will act as our backend API. Create an ASP.NET Core Web API and Add Docker Support Visual Studio for Mac will automatically add a new project to your solution called docker-compose and add a Dockerfile to your existing project. In the Solution Window, right click the DockerDemoFrontEnd project and select Add > Add Docker Support:.The created project contains all the basics you need to build and run an ASP.NET Core web site. Enter the project details, such as Project Name ( DockerDemoFrontEnd in this example) and Solution Name ( DockerDemo).Under Web and Console > App choose the Web Application template:.Create a new solution by going to File > New Solution.PrerequisitesĬreate an ASP.NET Core Web Application and Add Docker Support In this tutorial, you'll learn how to manage more than one container and communicate between them when using Docker Compose in Visual Studio for Mac.