Skip to content

Instantly share code, notes, and snippets.

@pjoe
Last active September 15, 2020 16:09
Show Gist options
  • Save pjoe/312947ec248782676c17fab3bfdb2060 to your computer and use it in GitHub Desktop.
Save pjoe/312947ec248782676c17fab3bfdb2060 to your computer and use it in GitHub Desktop.
mssql docker
version: "3"
services:
db:
image: mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-16.04
restart: always
ports:
- "1433:1433"
environment:
- "ACCEPT_EULA=Y"
- "SA_PASSWORD=Demo#1234"
- "MSSQL_COLLATION=Danish_Norwegian_CI_AS"
- "MSSQL_AGENT_ENABLED=True"
volumes:
- "db-data:/var/opt/mssql"
- "./backups:/backups"
volumes:
db-data:
# tips on in-memory db: https://github.com/microsoft/mssql-docker/issues/110#issuecomment-310969848
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment