Add mongo healthcheck

see #58
This commit is contained in:
Jakob Berlin 2021-02-17 23:53:16 +01:00 committed by GitHub
parent fcccf8145e
commit 762a4a4ae9
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