This image is based on mcr.microsoft.com/mssql/server and adds the ability to create databases.
In the docker-compose.yml
file:
version: '3.7'
services:
sql-server:
image: mcr.microsoft.com/mssql/server:2019-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=str0ngP@ass
- MSSQL_PID=Developer
ports:
- 1434:1433
sql-db-init:
image: krossk/mssql-seed
environment:
- MSSQL_HOST_NAME=sql-server
- SA_PASSWORD=str0ngP@ass
- DATABASES=Users,Projects,Catalogs,Basket,Authorization
depends_on:
- sql-server