Running .NET Applications that Communicate Over a Network Using Docker Compose

Download full source code. In this post, I will show you how to run two .NET applications in Docker containers and have them communicate with each other. I will use Docker Compose to create the network, build the images, and run the containers. The first application is a .NET Web API with an endpoint that returns a random number when called. The second application is a .NET Worker Service that…