From 5ac5bb22b1935e65327f7e965e11a4e30ef9ee78 Mon Sep 17 00:00:00 2001 From: Icebob Date: Wed, 7 Aug 2024 19:40:48 +0200 Subject: [PATCH] update mssql --- test/docker-compose.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 4a5037e..5987044 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -47,17 +47,35 @@ services: # - 8081:8080 mssql: - image: mcr.microsoft.com/mssql/server:2019-latest + image: mcr.microsoft.com/mssql/server:2022-latest ports: - '1433:1433' environment: - ACCEPT_EULA=Y + - MSSQL_PID=Developer - SA_PASSWORD=Moleculer@Pass1234 healthcheck: - test: /opt/mssql-tools/bin/sqlcmd -S mssql -U sa -P 'Moleculer@Pass1234' -Q 'select 1' + test: + [ + 'CMD', + '/opt/mssql-tools/bin/sqlcmd', + '-S', + 'localhost', + '-U', + 'SA', + '-P', + 'Moleculer@Pass1234', + '-l', + '30', + '-Q', + 'SELECT 1', + ] + interval: 3s + timeout: 1s + retries: 10 mssql-create-db: - image: mcr.microsoft.com/mssql/server:2019-latest + image: mcr.microsoft.com/mssql/server:2022-latest links: - mssql depends_on: