Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Docker compose file to build two containers for SQL Server 2017 (latest image)
version: '3.7'
services:
dba1:
container_name: 'dba1'
image:
mcr.microsoft.com/mssql/server:2017-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=P@ssword12345
ports:
- '1417:1433'
volumes:
- c:\container\dba1\sqlsystem:/var/opt/mssql/data
- c:\container\dba1\sqluser:/var/opt/mssql/sqlserver
- c:\container\dba1\sqlbackups:/var/opt/mssql/backups
dba2:
container_name: 'dba2'
image:
mcr.microsoft.com/mssql/server:2017-latest
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=P@ssword12345
ports:
- '1418:1433'
volumes:
- c:\container\dba2\sqlsystem:/var/opt/mssql/data
- c:\container\dba2\sqluser:/var/opt/mssql/sqlserver
- c:\container\dba2\sqlbackups:/var/opt/mssql/backups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.