Skip to content

Instantly share code, notes, and snippets.

@GetoXs
Created January 6, 2021 15:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GetoXs/96b09c1a767b0a682a95c0a4ace69113 to your computer and use it in GitHub Desktop.
Save GetoXs/96b09c1a767b0a682a95c0a4ace69113 to your computer and use it in GitHub Desktop.
Microsoft SQL Server 2019 in Docker with data volume and Linux host
version: "3"
services:
db:
image: mcr.microsoft.com/mssql/server
user: root # this resolve problem with mssql's permission to binded directory
environment:
SA_PASSWORD: "StrongPassword321"
ACCEPT_EULA: "Y"
volumes:
- ./mssql-server-linux/data:/var/opt/mssql/data
ports:
- 1433:1433
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment