Added SQL Server health check

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Esteban Solano Granados 2021-05-18 04:09:38 +00:00 committed by GitHub
parent 8119ab4025
commit 95e7eaeb0a

View File

@ -8,6 +8,13 @@ services:
environment:
ACCEPT_EULA: "Y"
SA_PASSWORD: example_123
expose:
- 1433
image: microsoft/mssql-server-linux
restart: always
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