Migrate aspnet-mssql sample to .NET 5 🚀 (#143)

* Updated MVC app to .NET 5

Signed-off-by: GitHub <noreply@github.com>

* Added SQL Server health check

Signed-off-by: GitHub <noreply@github.com>

* Updated README.md files with ASP.NET samples

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Esteban Solano Granados
2021-05-21 10:43:15 -06:00
committed by GitHub
parent c8370c40c6
commit 6ba8ef4937
9 changed files with 495 additions and 61 deletions

View File

@@ -1,13 +1,20 @@
version: "3.7"
services:
web:
build: app
build: app/aspnetapp
ports:
- 80:80
db:
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: example_123
expose:
- 1433
image: microsoft/mssql-server-linux
restart: always
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P example_123 -Q 'SELECT 1' || exit 1"]
interval: 10s
retries: 10
start_period: 10s
timeout: 3s