Skip to content

Commit

Permalink
start replica set on custom port
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuspoehls committed Apr 8, 2024
1 parent ae1fadf commit 7ff7ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start-mongodb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7ff7ec9

Please sign in to comment.