Skip to content

Commit

Permalink
update mssql
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Aug 7, 2024
1 parent eebaa29 commit 5ac5bb2
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5ac5bb2

Please sign in to comment.