Skip to content

Instantly share code, notes, and snippets.

@mystygage
Created March 6, 2017 21:02
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mystygage/b41bbfceeeb6dc8ab0f160485186061c to your computer and use it in GitHub Desktop.
Save mystygage/b41bbfceeeb6dc8ab0f160485186061c to your computer and use it in GitHub Desktop.
Microsoft SQL Server in Docker with data volume
version: '3'
services:
mssql-server-linux:
image: microsoft/mssql-server-linux:latest
volumes:
- mssql-server-linux-data:/var/opt/mssql/data
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-yourStrong(!)Password}
ports:
- "1433:1433"
volumes:
mssql-server-linux-data:
@araujofelipe
Copy link

Thanks for this, my friend!

@tas977
Copy link

tas977 commented Jan 5, 2021

Thank you for this! 👍

@igorfarias30
Copy link

Nice, thank you a lot!

@DevEddy
Copy link

DevEddy commented Sep 6, 2022

Thanks

@nijatabdull
Copy link

Good one, Sir!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment