Summary

Fixes the Rocket.Chat deployment failure caused by MongoDB health check issues.

Changes

  • Updated MongoDB image from bitnamilegacy/mongodb:5.0 to bitnami/mongodb:6.0
  • Replaced deprecated mongo shell command with mongosh in health check
  • Changed health check from echo 'db.stats().ok' | mongo to mongosh --eval 'db.runCommand("ping").ok'

Root Cause

The bitnamilegacy/mongodb:5.0 image uses the old mongo shell which has been deprecated. MongoDB 6.0+ uses mongosh as the default shell. The health check was failing because:

  1. The legacy image may not work properly on some systems (like AlmaLinux 10)
  2. The health check command syntax was outdated

Test Plan

  • Deploy Rocket.Chat service using the updated template
  • Verify MongoDB container passes health check
  • Verify Rocket.Chat successfully connects to MongoDB

Fixes #7941

/claim #7941

Claim

Total prize pool $5
Total paid $0
Status Pending
Submitted January 14, 2026
Last updated January 14, 2026

Contributors

AL

Ali Kemal Yavas

@Kemalyavas

100%

Sponsors

PA

Paul Albrecht

@paul-hph

$5