-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Добавлены ссылки на полезные материалы - Обновлена документация - Добавлен пример запуска SQL Server 2022 через Docker Compose с примером настройки - Добавлена доп. информация по настройке каталогов на хост машине
- Loading branch information
Showing
5 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SQL Server и Docker | ||
|
||
Примеры запуска SQL Server в Docker. | ||
|
||
## Полезные материалы | ||
|
||
* [Краткое руководство. Запуск образов контейнеров SQL Server на Linux с помощью Docker](https://learn.microsoft.com/ru-ru/sql/linux/quickstart-install-connect-docker?view=sql-server-ver16&pivots=cs1-bash) | ||
* [Использование сервера баз данных, работающего в качестве контейнера](https://learn.microsoft.com/ru-ru/dotnet/architecture/microservices/multi-container-microservice-net-applications/database-server-container) | ||
* [Microsoft SQL Server - Ubuntu based images](https://hub.docker.com/_/microsoft-mssql-server) | ||
* [SQL Server in Docker on GitHub](https://github.com/microsoft/mssql-docker) | ||
* [MS SQL Server in Docker](https://medium.com/@zzpzaf.se/ms-sql-server-in-docker-b0397a55859c) by [Panos Zafeiropoulos](https://medium.com/@zzpzaf.se?source=post_page-----b0397a55859c--------------------------------) | ||
* [How to set up and run SQL Server Docker image](https://www.sqlshack.com/how-to-set-up-and-run-sql-server-docker-image/) by [Aveek Das](https://www.sqlshack.com/author/aveek-das/) | ||
* [How to Deploy & Connect an SQL Server Docker Container](https://hevodata.com/learn/sql-server-docker/) | ||
* [How to run SQL Server in a Docker container](https://blog.logrocket.com/docker-sql-server/) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# SQL Server - базовая настройка | ||
|
||
Пример базовой настройки образа SQL Server для запуска через Docker Compose. | ||
|
||
## Перед запуском | ||
|
||
Перед запуском может понадобиться настроить права на каталоги. | ||
|
||
```bash | ||
mkdir -p fs | ||
chgrp -R 0 fs | ||
chmod -R g=u fs | ||
chown -R 10001:0 fs | ||
``` | ||
|
||
## Как запустить | ||
|
||
При установленном Docker Engine и Docker Compose достаточно выполнить команду: | ||
|
||
```bash | ||
docker-compose up -d | ||
``` | ||
|
||
Команду выполнять в каталоге с файлом docker-compose.yml. В результате будут созданы подкаталог fs с файлами конфигурации сервера SQL Server. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: '3' | ||
|
||
networks: | ||
sqlserver-network: | ||
driver: bridge | ||
|
||
services: | ||
sql-server: | ||
image: mcr.microsoft.com/mssql/server:2022-latest | ||
hostname: sql-server | ||
container_name: sql-server | ||
restart: unless-stopped | ||
ports: | ||
- "1433:1433" | ||
volumes: | ||
- ${PWD}/fs/volumes/sqlserver/data:/var/opt/mssql/data | ||
- ${PWD}/fs/volumes/sqlserver/log:/var/opt/mssql/log | ||
- ${PWD}/fs/volumes/sqlserver/secrets:/var/opt/mssql/secrets | ||
environment: | ||
MSSQL_SA_PASSWORD: "MySuperPassword-128935" | ||
ACCEPT_EULA: "Y" | ||
MSSQL_PID: Developer | ||
networks: | ||
- sqlserver-network | ||
|