Added SQL Server health check
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
8119ab4025
commit
95e7eaeb0a
@ -8,6 +8,13 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
ACCEPT_EULA: "Y"
|
ACCEPT_EULA: "Y"
|
||||||
SA_PASSWORD: example_123
|
SA_PASSWORD: example_123
|
||||||
expose:
|
|
||||||
- 1433
|
|
||||||
image: microsoft/mssql-server-linux
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user