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

Open Beginner friendly
#332 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
docker-compose, mongodb
Domain
databases, devops

Research direction

Open docker-compose.yml and locate the existing MongoDB healthcheck. Compare it with the issue's mongosh-based command, then verify that the healthcheck uses the documented command, interval, timeout, and retry values. Done means the compose healthcheck no longer depends on the removed mongo shell.

Written by the indexing model from the issue text.

Description

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
Dominant language
Shell
Stars
1.3k
Forks
310
Avg merge
3d 12h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from overleaf/toolkit

All issues in overleaf/toolkit

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.