2025-03-09 12:09:22 +05:30
|
|
|
|
version: '3.8'
|
|
|
|
|
|
2020-03-05 18:49:27 +01:00
|
|
|
|
services:
|
2025-03-09 12:09:22 +05:30
|
|
|
|
app:
|
|
|
|
|
image: aspnet-app
|
2020-03-05 18:49:27 +01:00
|
|
|
|
ports:
|
2025-03-09 12:09:22 +05:30
|
|
|
|
- "80:80"
|
2020-03-05 18:49:27 +01:00
|
|
|
|
environment:
|
2025-03-09 12:09:22 +05:30
|
|
|
|
- ACCEPT_EULA=Y
|
|
|
|
|
- SA_PASSWORD=YourStrong!Passw0rd
|
|
|
|
|
|
|
|
|
|
mssql:
|
|
|
|
|
image: mcr.microsoft.com/mssql/server:2019-latest
|
2021-05-21 10:43:15 -06:00
|
|
|
|
restart: always
|
2025-03-09 12:09:22 +05:30
|
|
|
|
environment:
|
|
|
|
|
- ACCEPT_EULA=Y
|
|
|
|
|
- SA_PASSWORD=YourStrong!Passw0rd
|
|
|
|
|
ports:
|
|
|
|
|
- "1433:1433"
|
2021-05-21 10:43:15 -06:00
|
|
|
|
healthcheck:
|
2025-03-09 12:09:22 +05:30
|
|
|
|
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P YourStrong!Passw0rd -Q 'SELECT 1' || exit 1"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
retries: 10
|
|
|
|
|
start_period: 10s
|
|
|
|
|
timeout: 5s
|