Skip to content

Commit 2a4962d

Browse files
feat(command): Add mssql
1 parent 2788091 commit 2a4962d

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.env

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ LUA_IMAGE=nickblah/lua
2828
LUA_VERSION=5.4.3
2929
MKDOCS_VERSION=1.16.0
3030
MKDOCS_PACKAGES="mkdocs-material mkdocs-material-extensions"
31+
MSSQL_VERSION=2022-latest
32+
SA_PASSWORD=Dockerized1
3133
MYSQL_VERSION=8.0.28
3234
NODE_VERSION=17.7.2
3335
PERL_VERSION=5.34.1

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dockerized <command>
2222
- [s3cmd](apps/s3cmd/README.md)
2323
- Database
2424
- dolt
25+
- [mssql](apps/mssql/README.md)
2526
- mysql
2627
- [postgres](apps/postgres/README.md)
2728
- psql

apps/mssql/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Dockerized mssql (Microsoft SQL Server)
2+
3+
How to run Microsoft SQL Server within docker?
4+
5+
```shell
6+
dockerized mssql
7+
```
8+
9+
- The default password is `Dockerized1`
10+
- Override the password with the environment variable `SA_PASSWORD`
11+
- `SA_PASSWORD=<password> dockerized mssql`
12+
- Or change it in your `dockerized.env` file

docker-compose.yml

+5
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ services:
133133
lua:
134134
image: "${LUA_IMAGE}:${LUA_VERSION}"
135135
entrypoint: [ "lua" ]
136+
mssql:
137+
image: "mcr.microsoft.com/mssql/server:${MSSQL_VERSION}"
138+
environment:
139+
SA_PASSWORD: "${SA_PASSWORD:-}"
140+
ACCEPT_EULA: "Y"
136141
mysql:
137142
image: "mysql:${MYSQL_VERSION}"
138143
entrypoint: [ "mysql" ]

0 commit comments

Comments
 (0)