From 069d923563ec99b1cf679a81fc649a6df19703a2 Mon Sep 17 00:00:00 2001 From: Steven Oderayi Date: Wed, 30 Aug 2023 10:26:08 +0100 Subject: [PATCH] fix: fix healthcheck for objstore --- docker-compose-perf.yml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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