fix: mongodb healtcheck command
This commit is contained in:
@@ -52,7 +52,7 @@ class StartMongodb
|
|||||||
'healthcheck' => [
|
'healthcheck' => [
|
||||||
'test' => [
|
'test' => [
|
||||||
'CMD-SHELL',
|
'CMD-SHELL',
|
||||||
'mongo --eval "printjson(db.serverStatus())" | grep uptime | grep -v grep'
|
'mongosh --eval "printjson(db.runCommand(\"ping\"))"'
|
||||||
],
|
],
|
||||||
'interval' => '5s',
|
'interval' => '5s',
|
||||||
'timeout' => '5s',
|
'timeout' => '5s',
|
||||||
|
Reference in New Issue
Block a user