Attempt #1 to auto compile MongoDB into the build to exclude it from the compose.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user