File size: 268 Bytes
26488bb
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# Start MongoDB
mongod --replSet rs0 --bind_ip_all &

# Wait for MongoDB to start
sleep 10

# Initialize replica set
mongosh --eval "rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]})"

# Start Rocket.Chat
cd /app/bundle
node main.js