Simple HTTP/TCP health check for MongoDB : <p>I need to create a Health Check for a MongoDB instance inside a Docker container.</p>

<p>Although I can make a workaround and use the Mongo Ping using the CLI, the best option is to create a simple HTTP or TCP testing. There is no response in the default 27017 port in standard ping testings.</p>

<p>Is there any trustworthy way to do it?</p>
