Docker compose an ASP NET Core application with SQL Server
Docker compose an ASP NET Core application with SQL Server Last week we saw how we could install and run an ASP NET Core application in a container , we saw how Visual Studio uses docker-compose to setup our services. Today we will see how we can use compose to setup a cluster composed by an ASP NET Core application container with a SQL Server container and how we can place in a third party process. This post will be composed by three parts: Setup SQL Server container on its own Setup an ASP NET Core application with SQL Server Setup a Flyway as migration tool 1. Setup SQL Server container on its own If you haven’t installed Docker, follow my previous blog post . The SQL Server Docker image can be downloaded from mcr.microsoft.com/mssql/server:2017-latest . So first we can start by running the container: docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=MyPassword001" -p 1433:1433 --name sqlserver-test -d mcr.microsoft.com/mssql/server:2017-latest -e spec...