File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ PostgreSQL | [./postgres](./postgres/) | <https://postgresql.org/>
19
19
Redis | [ ./redis] ( ./redis/ ) | < https://redis.io/ >
20
20
RedPanda | [ ./redpanda] ( ./redpanda ) | < https://vectorized.io/ >
21
21
ScyllaDB | [ ./scylla] ( ./scylla ) | < https://scylladb.com/ >
22
+ SQL Server | [ ./mssqlserver] ( ./mssqlserver ) | < https://www.microsoft.com/sql-server/ >
22
23
Tarantool | [ ./tarantool] ( ./tarantool/ ) | < https://tarantool.io/ >
23
24
TiDB | [ ./tidb] ( ./tidb/ ) | < https://pingcap.com/ >
24
25
YugaByteDB | [ ./yugabyte] ( ./yugabyte ) | < https://yugabyte.com/ >
Original file line number Diff line number Diff line change
1
+ # Microsoft SQL Server w/ Docker Compose
2
+
3
+ ## Super User Authentication
4
+
5
+ Username: ` sa `
6
+ Password: ` StrongPassw0rd! `
7
+
8
+ ## Enter the Container w/ Bash
9
+
10
+ ``` docker-compose exec --user root db /bin/bash ```
11
+
12
+ ## Enter the sqlcmd Shell
13
+
14
+ ``` docker-compose exec --user root db /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'StrongPassw0rd!' ```
15
+
16
+ ## Create a DB
17
+
18
+ While inside the sqlcmd shell, run the following:
19
+
20
+ ``` sql
21
+ CREATE DATABASE MyDatabase ;
22
+ GO
23
+ ```
24
+
25
+ ## Other Docs
26
+
27
+ [ Quickstart: Run SQL Server container images with Docker] ( https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker )
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+
3
+ services :
4
+ db :
5
+ image : mcr.microsoft.com/mssql/server:latest
6
+ user : root
7
+ volumes :
8
+ - mssql_data:/var/opt/mssql/data
9
+ ports :
10
+ - 1433:1433
11
+ environment :
12
+ - ACCEPT_EULA=Y
13
+ - SA_PASSWORD=StrongPassw0rd!
14
+ volumes :
15
+ mssql_data:
You can’t perform that action at this time.
0 commit comments