Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorial:adm:mssql_database_support [2021/03/05 17:15] apeterova NTLM |
tutorial:adm:mssql_database_support [2021/03/30 12:13] doischert [Develop CzechIdM with MsSQL and a docker] |
||
---|---|---|---|
Line 180: | Line 180: | ||
$ docker exec test-mssql / | $ docker exec test-mssql / | ||
+ | ==== Use docker-compose ==== | ||
+ | You can also use the following docker-compose.yml file. The advantage is that it uses persistent volumes and docker-compose cleans after itself better. Copy and edit (if needed) the code below to a file called ' | ||
+ | < | ||
+ | version: " | ||
+ | services: | ||
+ | sql-server-db: | ||
+ | container_name: | ||
+ | image: microsoft/ | ||
+ | ports: | ||
+ | - " | ||
+ | environment: | ||
+ | SA_PASSWORD: | ||
+ | ACCEPT_EULA: | ||
+ | MSSQL_BACKUP_DIR: | ||
+ | MSSQL_DATA_DIR: | ||
+ | MSSQL_LOG_DIR: | ||
+ | volumes: | ||
+ | - ' | ||
+ | - ' | ||
+ | volumes: | ||
+ | systemdbs: | ||
+ | userdbs: | ||
+ | </ | ||
+ | |||
+ | Then, in the same directory, use the command `docker-compose up` to start the database. | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||