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