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

This commit is contained in:
Karmaa
2025-03-16 13:07:18 -05:00
parent b585c95b25
commit aa95fee450
3 changed files with 26 additions and 11 deletions

View File

@@ -1,11 +1,16 @@
#!/bin/sh
# Start NGINX in background
nginx -g "daemon off;" &
# Start MongoDB with custom data directory
mongod --fork --dbpath $MONGODB_DATA_DIR --logpath $MONGODB_LOG_DIR/mongodb.log
# Start Node.js backend
# Start nginx
nginx
# Start the SSH service
node src/backend/ssh.cjs &
# Start the database service
node src/backend/database.cjs &
# Keep container running
wait
# Keep the container running
tail -f /dev/null