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:
parent
0671caa1dd
commit
27abad6171
1 changed files with 20 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue