This commit is contained in:
Kar
2026-02-25 12:40:10 +05:30
parent a1a787ec81
commit fc1d82ad81
7 changed files with 583 additions and 0 deletions

18
scripts/init-mongo.js Normal file
View File

@@ -0,0 +1,18 @@
// MongoDB initialization script
// This script runs when the container starts for the first time
db = db.getSiblingDB('beanstalk');
// Create application user
db.createUser({
user: 'app_user',
pwd: 'app_password',
roles: [
{
role: 'readWrite',
db: 'beanstalk'
}
]
});
print('Database initialization completed');