Skip to content

Instantly share code, notes, and snippets.

@rchardptrsn
Last active May 13, 2024 15:55
Show Gist options
  • Save rchardptrsn/508f954445829433e840c93167c042ef to your computer and use it in GitHub Desktop.
Save rchardptrsn/508f954445829433e840c93167c042ef to your computer and use it in GitHub Desktop.
Docker compose file for SQL Server 2022
services:
mssql:
container_name: mssql-db
hostname: mssql-db
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: 'Passw0rd'
MSSQL_DATA_DIR: /var/opt/mssql/data
MSSQL_PID: 'Developer'
MSSQL_TCP_PORT: 1433
ports:
- "1433:1433"
volumes:
- ./data:/var/opt/mssql/data
- ./log:/var/opt/mssql/log
- ./secrets:/var/opt/mssql/secrets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment