fix mongo healthcheck yaml formatting

This commit is contained in:
chandi 2021-02-22 16:34:40 +01:00
parent 6cc091c3e8
commit 75358b156c

View File

@ -100,7 +100,8 @@ services:
mongodb:
image: mongo:4.4
restart: unless-stopped
test: bash -c "if mongo --eval 'quit(db.runCommand({ ping':' 1 }).ok ? 0 ':' 2)'; then exit 0; fi; exit 1;"
healthcheck:
test: bash -c "if mongo --eval 'quit(db.runCommand({ ping':' 1 }).ok ? 0 ':' 2)'; then exit 0; fi; exit 1;"
networks:
bbb-net:
ipv4_address: 10.7.7.6