From 65b37de33c79b5be3741b457221a41373278ac69 Mon Sep 17 00:00:00 2001 From: Cyrille <1618640+cyri113@users.noreply.github.com> Date: Thu, 4 Jan 2024 17:42:16 +0100 Subject: [PATCH] Update docker-compose.yml --- development/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/docker-compose.yml b/development/docker-compose.yml index df614ec..21c1b41 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -34,8 +34,8 @@ services: # chmod 400 /etc/mongo/replica.key # chown 999:999 /etc/mongo/replica.key healthcheck: - test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet - # test: test $$(echo "rs.initiate().ok || rs.status().ok") | mongosh localhost:27017/test --quiet + # test: echo 'db.stats().ok' | mongosh localhost:27017/test --quiet + test: test $$(echo "rs.initiate().ok || rs.status().ok") | mongosh localhost:27017/test --quiet # test: echo "try { rs.status() } catch (err) { rs.initiate({_id:'rs0',members:[{_id:0,host:'mongodb-dev'}]}) }" | mongosh --port 27017 --quiet interval: 60s timeout: 10s