From 4fe538c531073079670e646b7ef9ddabded23d15 Mon Sep 17 00:00:00 2001 From: Sanbei Date: Wed, 9 Oct 2024 07:37:25 +0000 Subject: [PATCH] [bitnami/mongodb] add allow remote connection env Signed-off-by: GitHub --- .../rootfs/opt/bitnami/mongodb/templates/mongodb.conf.tpl | 2 +- .../8.0/debian-12/rootfs/opt/bitnami/scripts/mongodb-env.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/mongodb/templates/mongodb.conf.tpl b/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/mongodb/templates/mongodb.conf.tpl index 0a5dbe5765eda..b7ac04bb000bd 100644 --- a/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/mongodb/templates/mongodb.conf.tpl +++ b/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/mongodb/templates/mongodb.conf.tpl @@ -25,7 +25,7 @@ net: enabled: true pathPrefix: {{MONGODB_TMP_DIR}} ipv6: {{MONGODB_DEFAULT_ENABLE_IPV6}} - bindIpAll: false + bindIpAll: {{ALLOW_REMOTE_CONNECTION}} bindIp: 127.0.0.1 # replica set options diff --git a/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/scripts/mongodb-env.sh b/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/scripts/mongodb-env.sh index e38995911d7da..a1e06a9b03df5 100644 --- a/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/scripts/mongodb-env.sh +++ b/bitnami/mongodb/8.0/debian-12/rootfs/opt/bitnami/scripts/mongodb-env.sh @@ -53,6 +53,7 @@ mongodb_env_vars=( MONGODB_EXTRA_PASSWORDS MONGODB_EXTRA_DATABASES ALLOW_EMPTY_PASSWORD + ALLOW_REMOTE_CONNECTION MONGODB_REPLICA_SET_MODE MONGODB_REPLICA_SET_NAME MONGODB_REPLICA_SET_KEY