From 877c18908cd258d7aad44108d4c1d2289bbdecf4 Mon Sep 17 00:00:00 2001 From: Cyrille <1618640+cyri113@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:52:26 +0100 Subject: [PATCH] update healthcheck test --- development/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development/docker-compose.yml b/development/docker-compose.yml index e6d9450..5d654da 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -23,7 +23,7 @@ services: - ./mongo:/etc/mongo:ro - mongodb_data_container:/data/db healthcheck: - test: test $(echo $(mongosh --quiet /etc/mongo/healthcheck.js)) -eq 1 + test: test $(echo $(mongosh -u $$MONGO_INITDB_ROOT_USERNAME -p $$MONGO_INITDB_ROOT_PASSWORD --quiet /etc/mongo/healthcheck.js)) -eq 1 interval: 60s timeout: 10s retries: 2