services: db: environment: ACCEPT_EULA: "Y" SA_PASSWORD: titok_123 image: mcr.microsoft.com/mssql/server container_name: sql-server2 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