Boilerplate docker compose file to run a docker image and restore a MSSQL Backup on Apple Silicon
- Azure SQL Edge as a mac compatible replacement for mssql server.
- sqlcmd from microsoft-mssql-tools as mssql client command line tool to run mssql scripts.
- adminer as webbased client to display mssql server.
- Northwind Microsofts sample MSSQL database for demonstration purposes.
- Clone the repository
- Get the MSSQL database backup that you want to restore
- Put the database backup file to folder bak
- Open restore_backup.sql and adjust the first four arguments acording to your datbase (filename, backup name, etc...)
- Run
docker compose up
to start everything. See docker compose file for SA user credentials to login. The database will have the name as defined in the variable@DB_TARGET_NAME
in restore_backup.sql - Run
docker compose down -v
to reset everything (and to delete the database)