diff --git a/docker-compose-perf.yml b/docker-compose-perf.yml index 9438044b..c0389ce5 100644 --- a/docker-compose-perf.yml +++ b/docker-compose-perf.yml @@ -439,7 +439,7 @@ services: # networks: # - mojaloop-net # healthcheck: - # test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet + # test: mongosh --eval 'db.runCommand("ping").ok' localhost:27017/test --quiet # interval: 10s # timeout: 10s # retries: 5 diff --git a/docker-compose.yml b/docker-compose.yml index 0d5c9f05..6a0db205 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -50,7 +50,7 @@ services: networks: - mojaloop-net healthcheck: - test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet + test: mongosh --eval 'db.runCommand("ping").ok' localhost:27017/test --quiet interval: 10s timeout: 10s retries: 5