Skip to content

Commit 9d6f138

Browse files
committed
fix: set default mongodb connection string without authentication for all-in-one image
1 parent 5981b50 commit 9d6f138

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deploy/docker/all-in-one/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ else
2525
export MONGO_LISTEN_HOST="127.0.0.1"
2626
fi;
2727

28+
# Set the default mongodb connection string if not set explicitly
29+
if [ -z "${LOWCODER_MONGODB_URL}" ]; then
30+
export LOWCODER_MONGODB_URL="mongodb://localhost:27017/lowcoder?authSource=admin"
31+
fi;
32+
2833
LOGS="/lowcoder-stacks/logs"
2934
DATA="/lowcoder-stacks/data"
3035
CERT="/lowcoder-stacks/ssl"

0 commit comments

Comments
 (0)