toolkit
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.
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