Skip to content

Commit bdbb6a6

Browse files
Expose MSSQL port
Expose port 1433 so that the application can connect to it.
1 parent 81dc965 commit bdbb6a6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

docker/docker-compose-aspnetcore/docker-compose.oats.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
retries: 5
2424
mssql:
2525
image: mcr.microsoft.com/mssql/server:2022-latest
26+
ports:
27+
- "1433:1433"
2628
environment:
2729
- ACCEPT_EULA=Y
2830
- MSSQL_SA_PASSWORD=Password12345%%

docker/docker-compose-aspnetcore/docker-compose.self-contained.oats.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ services:
2626
retries: 5
2727
mssql:
2828
image: mcr.microsoft.com/mssql/server:2022-latest
29+
ports:
30+
- "1433:1433"
2931
environment:
3032
- ACCEPT_EULA=Y
3133
- MSSQL_SA_PASSWORD=Password12345%%

docker/docker-compose-aspnetcore/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ services:
1515
- "6379:6379"
1616
mssql:
1717
image: mcr.microsoft.com/mssql/server:2022-latest
18+
ports:
19+
- "1433:1433"
1820
environment:
1921
- ACCEPT_EULA=Y
2022
- MSSQL_SA_PASSWORD=Password12345%%

0 commit comments

Comments
 (0)