Skip to content

Commit fe659cd

Browse files
authored
Update docker compose to fix deprecation warning and expose port correctly. (#11)
1 parent c7e2ac8 commit fe659cd

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docker-compose.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
version: '3.8'
21
services:
32
db:
43
image: mcr.microsoft.com/mssql/server:2022-latest
@@ -7,9 +6,17 @@ services:
76
- ACCEPT_EULA=Y
87
- MSSQL_SA_PASSWORD=devP@ssw0rd
98
- MSSQL_PID=Developer
10-
network_mode: "host"
9+
networks:
10+
- sql
11+
ports:
12+
- 1433:1433
1113
volumes:
1214
- db:/var/opt/mssql
15+
1316
volumes:
1417
db:
15-
driver: local
18+
driver: local
19+
20+
networks:
21+
sql:
22+
driver: bridge

0 commit comments

Comments
 (0)