Skip to content

Instantly share code, notes, and snippets.

@rsantosdev
Created March 30, 2020 12:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rsantosdev/91540ff968623cd7a8bea75001a27a4e to your computer and use it in GitHub Desktop.
Save rsantosdev/91540ff968623cd7a8bea75001a27a4e to your computer and use it in GitHub Desktop.
version: '3.4'
services:
sql.data:
image: mcr.microsoft.com/mssql/server:2017-latest
container_name: dev_sql
environment:
- SA_PASSWORD=yourStrong(!)Password
- ACCEPT_EULA=Y
healthcheck:
test: ["CMD", "/opt/mssql-tools/bin/sqlcmd", "-Usa", "-PyourStrong(!)Password", "-Q", "select 1"]
interval: 1s
retries: 20
volumes:
- ./sql-scripts:/scripts
ports:
- "1435:1433"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment