From 75358b156ccf17efa3782ee8d9502289dfd52868 Mon Sep 17 00:00:00 2001 From: chandi Date: Mon, 22 Feb 2021 16:34:40 +0100 Subject: [PATCH] fix mongo healthcheck yaml formatting --- docker-compose.tmpl.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.tmpl.yml b/docker-compose.tmpl.yml index b6cccdf..f6f9dc4 100644 --- a/docker-compose.tmpl.yml +++ b/docker-compose.tmpl.yml @@ -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