This setup contains the following Docker Images:
- Microsoft SQL Server
Official images for Microsoft SQL Server based on Ubuntu - [Adminer]https://hub.docker.com/_/adminer)
Database management in a single PHP file.
Notes
The volumemssql_data
needs to be created before starting this setup:
docker volume create mssql_data
Password needs to be at least 8 characters and strong enough
Warning
This setup is only intended as a local test setup.
Don't use this for production.
This provides a Docker Compose setup: local_mssql
- Containers
mssql-server
: Microsoft SQL Serveradminer
: Adminer
- Ports | Endpoints
- Microsoft SQL Server:
1433
- Adminer:
http://localhost:1434
- Microsoft SQL Server:
- Volumes
mssql_data
- Network
local_mssql
with Hosts:mssql
adminer
Adminer can't be preconfigured with all settings. You have to select the connection data manually:
- Database System:
mssql
- Server:
mssql
|host.docker.internal
- Username:
sa
- Password:
Passw0rd
- Database:
master
Connect from Adminer to Microsoft SQL server:
host.docker.internal:1433
The host has a changing IP address, or none if you have no network access. Docker recommends that you connect to the special DNS namehost.docker.internal
, which resolves to the internal IP address used by the host.mssql:1433
- Host
mssql
is in the docker networklocal_mssql
- Adminer runs within Host
adminer
in the same network
- Host
Use the following commands for this setup
docker volume create mssql_data
docker-compose up -d
docker-compose stop
docker-compose down
docker volume rm mssql_data