Attempt #2 to auto compile MongoDB into the build to exclude it from the compose.

This commit is contained in:
Karmaa
2025-03-16 13:09:40 -05:00
parent aa95fee450
commit 89a123f36c
2 changed files with 18 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
#!/bin/bash
# Start MongoDB with custom data directory
mongod --fork --dbpath $MONGODB_DATA_DIR --logpath $MONGODB_LOG_DIR/mongodb.log
# Start MongoDB
mongod --fork --logpath /var/log/mongodb.log
# Start nginx
nginx
@@ -12,5 +12,5 @@ node src/backend/ssh.cjs &
# Start the database service
node src/backend/database.cjs &
# Keep the container running
tail -f /dev/null
# Keep the container running and show MongoDB logs
tail -f /var/log/mongodb.log