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: