Node utility to wait for Docker HEALTHCHECKs to pass. Requires the Docker CLI.
$ wait-for-docker-health my-container
Waiting for container = my-container state to be healthy
Docker container = my-container is healthy (took 0.166s)
const waitForDockerHealth = require('@fintechstudios/wait-for-docker-health');
async main() {
await waitForDockerHealth({ container: 'my-container' });
}