Created
April 21, 2025 20:03
-
-
Save pazteddy/b9b3cd43712b1643574e6734f699bdd3 to your computer and use it in GitHub Desktop.
Contenedor SQL Server 2022 con Docker Compose
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
| services: | |
| sql: | |
| image: mcr.microsoft.com/mssql/server:2022-latest | |
| container_name: sqlserver2022 | |
| ports: | |
| - "1433:1433" | |
| environment: | |
| ACCEPT_EULA: "1" | |
| MSSQL_SA_PASSWORD: "MyStrongPass123" | |
| MSSQL_PID: "Developer" | |
| volumes: | |
| - sqlserverdata:/var/opt/mssql | |
| volumes: | |
| sqlserverdata: | |
| # Comandos útiles: | |
| # Levantar los contenedores en segundo plano: | |
| # docker-compose up -d | |
| # Apagar y eliminar contenedores (no borra los volúmenes): | |
| # docker-compose down |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yeah!