2020-03-05 17:49:27 +00:00
|
|
|
services:
|
2020-03-06 16:39:55 +00:00
|
|
|
web:
|
2021-05-21 16:43:15 +00:00
|
|
|
build: app/aspnetapp
|
2020-03-05 17:49:27 +00:00
|
|
|
ports:
|
2020-03-23 23:36:46 +00:00
|
|
|
- 80:80
|
2020-03-05 17:49:27 +00:00
|
|
|
db:
|
|
|
|
environment:
|
|
|
|
ACCEPT_EULA: "Y"
|
|
|
|
SA_PASSWORD: example_123
|
2021-11-08 10:41:35 +00:00
|
|
|
# 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
|
2021-05-21 16:43:15 +00:00
|
|
|
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
|
|
|
|
|
2021-11-04 16:39:53 +00:00
|
|
|
|