I need to create a Health Check for a MongoDB instance inside a Docker container.
Although I can make a workaround and use the Mongo Ping using the CLI, the best option
One solution is to use a minimal MongoDB client written in a script language for which there is an interpreter in your container.
For example, here is a zero-dependency one in Python: mongo_ping_client.py