1
0
mirror of https://github.com/docker/awesome-compose.git synced 2025-07-04 11:32:55 +00: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: services:
web: app:
build: app/aspnetapp image: aspnet-app
ports: ports:
- 80:80 - "80:80"
db:
environment: environment:
ACCEPT_EULA: "Y" - ACCEPT_EULA=Y
SA_PASSWORD: example_123 - SA_PASSWORD=YourStrong!Passw0rd
# 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 mssql:
# If you really want to use MS SQL Server, uncomment the following line image: mcr.microsoft.com/mssql/server:2019-latest
#image: mcr.microsoft.com/mssql/server
restart: always restart: always
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=YourStrong!Passw0rd
ports:
- "1433:1433"
healthcheck: healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P example_123 -Q 'SELECT 1' || exit 1"] test: ["CMD-SHELL", "/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P YourStrong!Passw0rd -Q 'SELECT 1' || exit 1"]
interval: 10s interval: 10s
retries: 10 retries: 10
start_period: 10s start_period: 10s
timeout: 3s      timeout: 5s