Adopt Compose v2 (#240)
* Adopt Compose v2 Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
22
aspnet-mssql/compose.yaml
Normal file
22
aspnet-mssql/compose.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
web:
|
||||
build: app/aspnetapp
|
||||
ports:
|
||||
- 80:80
|
||||
db:
|
||||
environment:
|
||||
ACCEPT_EULA: "Y"
|
||||
SA_PASSWORD: example_123
|
||||
# mssql server image isn't available for arm64 architecture, so we use azure-sql instead
|
||||
image: mcr.microsoft.com/azure-sql-edge:1.0.4
|
||||
# If you really want to use MS SQL Server, uncomment the following line
|
||||
#image: mcr.microsoft.com/mssql/server
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user