Merge pull request #65 from derhecht/patch-4

Add mongo healthcheck
This commit is contained in:
chandi 2021-02-18 17:05:26 +01:00 committed by GitHub
commit 77a2cab3fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,7 @@ 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;"
networks:
bbb-net:
ipv4_address: 10.7.7.6