Created
January 6, 2021 15:15
-
-
Save GetoXs/96b09c1a767b0a682a95c0a4ace69113 to your computer and use it in GitHub Desktop.
Microsoft SQL Server 2019 in Docker with data volume and Linux host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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