From 147ff33530b6ec40c75de303a97bc49f158042a7 Mon Sep 17 00:00:00 2001 From: Gautier DELEGLISE Date: Mon, 20 Sep 2021 11:13:00 +0200 Subject: [PATCH] :sparkles: added mongo credentials --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 0538fe9..796d3d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -656,6 +656,9 @@ services: build: ./mongo ports: - "${MONGODB_PORT}:27017" + environment: + - MONGO_INITDB_ROOT_USERNAME=${MONGO_USERNAME} + - MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASSWORD} volumes: - ${DATA_PATH_HOST}/mongo:/data/db - ${DATA_PATH_HOST}/mongo_config:/data/configdb