Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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