1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00

Update compose.yaml

Signed-off-by: RASHMIBB23 <chandratejas0909@gmail.com>
This commit is contained in:
RASHMIBB23 2025-03-09 12:09:22 +05:30 committed by GitHub
parent 0671caa1dd
commit 27abad6171
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,22 +1,25 @@
version: '3.8'
services:
web:
build: app/aspnetapp
app:
image: aspnet-app
ports:
- 80:80
db:
- "80:80"
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
- ACCEPT_EULA=Y
- SA_PASSWORD=YourStrong!Passw0rd
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
restart: always
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=YourStrong!Passw0rd
ports:
- "1433:1433"
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
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