Skip to content

Latest commit

History

History
33 lines (26 loc) · 1.17 KB

File metadata and controls

33 lines (26 loc) · 1.17 KB

Microsoft SQLServer Docker Setup *

This Docker configuration sets up an instance of Microsoft SQL Server, a relational database management system. It includes a command-line example for quick deployment and a docker-compose script for managing the service in a project.

ArgumentDescription
ACCEPT_EULARequired to accept Microsoft's End-User License Agreement (EULA).
SA_PASSWORDSets the password for the system administrator (SA) account.

Docker command

docker run --name mssql-tests -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=Password123" -e "MSSQL_PID=Express" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-latest

Docker compose

services:
sqlserver:
image: mcr.microsoft.com/mssql/server:2019-latestcontainer_name: my-sqlserverrestart: alwaysports:
- '1433:1433'environment:
MSSQL_PID: ExpressMSSQL_SA_PASSWORD: Password123ACCEPT_EULA: Yvolumes:
sqlserver_data: