fix: mongodb healtcheck command

This commit is contained in:
Andras Bacsai 2023-10-24 15:47:29 +02:00
parent dc86170ef5
commit 5e8ac1b48e

View File

@ -52,7 +52,7 @@ public function handle(StandaloneMongodb $database)
'healthcheck' => [
'test' => [
'CMD-SHELL',
'mongo --eval "printjson(db.serverStatus())" | grep uptime | grep -v grep'
'mongosh --eval "printjson(db.runCommand(\"ping\"))"'
],
'interval' => '5s',
'timeout' => '5s',