Migrated MongoDB to version 4 to support RPI's and lower end processors.

This commit is contained in:
Karmaa
2025-03-16 19:29:34 -05:00
parent 10bc491a9f
commit c910ecced8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ RUN npm install
COPY src/backend/ ./src/backend/ COPY src/backend/ ./src/backend/
# Stage 3: Final production image # Stage 3: Final production image
FROM mongo:5 FROM mongo:4.4
# Install Node.js # Install Node.js
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
curl \ curl \
+1 -1
View File
@@ -7,7 +7,7 @@ mongod --fork --dbpath $MONGODB_DATA_DIR --logpath $MONGODB_LOG_DIR/mongodb.log
# Wait for MongoDB to be ready # Wait for MongoDB to be ready
echo "Waiting for MongoDB to start..." echo "Waiting for MongoDB to start..."
until mongosh --eval "print(\"waited for connection\")" > /dev/null 2>&1; do until mongo --eval "print(\"waited for connection\")" > /dev/null 2>&1; do
sleep 0.5 sleep 0.5
done done
echo "MongoDB has started" echo "MongoDB has started"