Wait for a docker container to be healthy
This is a small utility package to be used in npm scripts or with npx.
Usage in package.json
{
"scripts": {
"wait-for-database": "wait-for-healthy-container mydb 100"
},
"devDependencies": {
"wait-for-healthy-container": "^1.0.0"
}
}
Usage with npx
npx wait-for-healthy-container mydb 100