From faad9893066b164aa047f21d3e38885c43efe0d7 Mon Sep 17 00:00:00 2001 From: iPromKnight Date: Wed, 28 Feb 2024 12:07:46 +0000 Subject: [PATCH] Throw error if new mongo env vars not set in compose --- deployment/docker/docker-compose.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/docker/docker-compose.yaml b/deployment/docker/docker-compose.yaml index c2e9635..8df9ddb 100644 --- a/deployment/docker/docker-compose.yaml +++ b/deployment/docker/docker-compose.yaml @@ -55,8 +55,8 @@ services: env_file: - .env environment: - MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER} - MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD} + MONGO_INITDB_ROOT_USERNAME: ${MONGODB_USER:?Variable MONGODB_USER not set} + MONGO_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD:?Variable MONGODB_PASSWORD not set} # # If you need the database to be accessible from outside, please open the below port. # # Furthermore, please, please, please, change the username and password in the .env file. # ports: