mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 09:34:04 +00:00
add mssql health checks (#939)
This commit is contained in:
parent
f2c64088ed
commit
abd17f83a1
1 changed files with 7 additions and 1 deletions
|
|
@ -12,6 +12,8 @@ services:
|
|||
condition: service_healthy
|
||||
redis:
|
||||
condition: service_healthy
|
||||
# mssql:
|
||||
# condition: service_healthy
|
||||
volumes:
|
||||
- .:/var/www/html:delegated
|
||||
environment:
|
||||
|
|
@ -74,4 +76,8 @@ services:
|
|||
environment:
|
||||
- ACCEPT_EULA=Y
|
||||
- SA_PASSWORD=P@ssword # todo reuse values from env above
|
||||
# todo missing health check
|
||||
healthcheck:
|
||||
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P P@ssword -Q "SELECT 1" -b -o /dev/null
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue