diff --git a/lib/docker-compose.mongo.yml b/lib/docker-compose.mongo.yml index 8a2d6dc..ceba3cf 100644 --- a/lib/docker-compose.mongo.yml +++ b/lib/docker-compose.mongo.yml @@ -11,7 +11,7 @@ services: expose: - 27017 healthcheck: - test: echo 'db.stats().ok' | ${MONGOSH} localhost:27017/test --quiet + test: ["CMD-SHELL", "mongosh mongodb://localhost:27017/test --quiet --eval 'db.stats().ok' | grep '^1$'"] interval: 10s timeout: 10s retries: 5