rocket-chat-demo / start.sh
anuj
batman
046867d
raw
history blame
348 Bytes
#!/bin/bash
# Start MongoDB as mongodb user
gosu mongodb mongod --replSet rs0 --bind_ip_all --dbpath /data/db &
# Wait for MongoDB to start
sleep 10
# Initialize replica set
gosu mongodb mongosh --eval "rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]})"
# Start Rocket.Chat
cd /app/bundle
exec gosu rocketchat node main.js