From 7ff7ec94912ebcfad48d97f5ea43f9968c8ee1d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20P=C3=B6hls?= Date: Mon, 8 Apr 2024 10:24:31 +0200 Subject: [PATCH] start replica set on custom port --- start-mongodb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-mongodb.sh b/start-mongodb.sh index 7185bdb..b4eef2e 100644 --- a/start-mongodb.sh +++ b/start-mongodb.sh @@ -101,7 +101,7 @@ echo " - replica set [$MONGODB_REPLICA_SET]" echo "" -docker run --name $MONGODB_CONTAINER_NAME --publish $MONGODB_PORT:$MONGODB_PORT --detach mongo:$MONGODB_VERSION --replSet $MONGODB_REPLICA_SET +docker run --name $MONGODB_CONTAINER_NAME --publish $MONGODB_PORT:$MONGODB_PORT --detach mongo:$MONGODB_VERSION --port $MONGODB_PORT --replSet $MONGODB_REPLICA_SET if [ $? -ne 0 ]; then echo "Error starting MongoDB Docker container"