Docker compose file for working with sql server 2019
I was using a sql server 2019 image in docker running this command:
docker run --name sqlserver-2019 -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Ti6collegato!' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest
and connecting with SQL Server Management Studio (SSMS).
But I was not using a volume and every time I restart my machine I had to start the docker image.
So after a google search, I found this post
Exploring SQL Server 2019 with Docker
where I got the docker-compose.yml
file I was looking for.