On a Mac I have a Net Core 2.1 Class Library with a few Entity Framework migrations.
I need to use Docker to run SQL Server and update the database with the previews migrations.
I added a docker-compose.yml file to my project:
docker-compose.yml
src
data
project.data.csproj
The docker-compose.yml file is the following:
services:
data:
build: .
depends_on:
- database
database:
image: "microsoft/mssql-server-linux"
environment:
SA_PASSWORD: "Pass.word123"
ACCEPT_EULA: "Y"
At the moment this is not working.
How can I run EF Core migrations on SQL Server using docker in a Mac?