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