Edit docker-compose.yml
This commit is contained in:
@@ -13,7 +13,7 @@ services:
|
|||||||
command: sleep infinity
|
command: sleep infinity
|
||||||
|
|
||||||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
||||||
network_mode: service:db
|
nnetwork_mode: host
|
||||||
|
|
||||||
# Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
# Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||||
# user: root
|
# user: root
|
||||||
@@ -24,6 +24,7 @@ services:
|
|||||||
db:
|
db:
|
||||||
image: mcr.microsoft.com/mssql/server:2019-latest
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
network_mode: host
|
||||||
environment:
|
environment:
|
||||||
SA_PASSWORD: P@ssw0rd
|
SA_PASSWORD: P@ssw0rd
|
||||||
ACCEPT_EULA: Y
|
ACCEPT_EULA: Y
|
||||||
|
|||||||
Reference in New Issue
Block a user