toolkit icon indicating copy to clipboard operation
toolkit copied to clipboard

From MongoDB v6.0, the mongo shell is no longer included in the official Docker image. Instead, it has been replaced with mongosh.

Open genkifs opened this issue 10 months ago • 0 comments

Need to update the health check to use mongosh instead of mongo.

In docker-compose.yml need to change the health check to this:

healthcheck:
  test: ["CMD", "mongosh", "--eval", "db.adminCommand('ping')"]
  interval: 10s
  timeout: 5s
  retries: 5

genkifs avatar Feb 17 '25 16:02 genkifs