Unraid Community App Rocket.Chat with MongoDB

Dear community, this is my first post here and I hope you will be a little lenient with me and forgive me if I posted my query in the wrong category. Unfortunately, I’m German and the fact that this forum is entirely in English doesn’t make it any easier for me. I am therefore trying to convey my concerns to you via a translator.

I’ve been trying to get Rocket.Chat running on my Unraid server for quite some time now, unfortunately without success. Unraid’s website even advertises Rocket.Chat and there is also a YouTube guide https://unraid.net/community-hosting Unfortunately, this guide is now many years old and in my opinion is no longer up to date or works which in my case simply doesn’t.

I have an Unraid Server 6.11.5 and I have installed Rocket.Chat from the Community Apps, as well as MongoDB - both are Docker containers. Both instances are running on my server, but I still can’t access Rocket.Chat.

In the comments to the Spaceinvader tutorial in question, there was a link to an updated guide that I used.

Unfortunately, I don’t know why I can’t access Rocket.Chat and so I need your help

######################## INSTRUCTIONS FOR INSTALLING ROCKETCHAT WITH MONGODB ########################


############################## MONGODB CONTAINER INSTALL ######################

## 1 - Create folder mongodb in /mnt/user/appdata/

mkdir /mnt/user/appdata/mongodb

## 2 - Change directory to that folder

cd /mnt/user/appdata/mongodb

## 3 - Create key file called mongodb.key (key which mongodb will use for authorization)

openssl rand -base64 741 > mongodb.key
chmod 600 mongodb.key

## 3b - Create file called mongod.conf (configuration file which mongodb will use)

nano mongod.conf

## 3c - paste the below into file






# mongod.conf

# for documentation of all options, see:
#   http://docs.mongodb.org/manual/reference/configuration-options/

# Where and how to store data.
storage:
  dbPath: /data/db
#  journal:
#    enabled: true
#  engine:
#  mmapv1:
#  wiredTiger:

# network interfaces
net:
  port: 27017
  bindIp: 127.0.0.1

# how the process runs
processManagement:
  timeZoneInfo: /usr/share/zoneinfo

# security (authorization) settings
security:
  authorization: "enabled"
  keyFile: /data/db/mongodb.key

#operationProfiling:

replication:
  replSetName: "rs01"

#sharding:

## Enterprise-Only Options:

#auditLog:

#snmp:






## 4 - save file and exit
ctrl o    enter  ctrl x


## 5 - Install MongoDB via community Apps - add below to template

Add to Extra Parameters  --hostname mongodatabase

Add to postargument     -f /data/db/mongod.conf


## 6 - Apply to pull down the container


## 7 - Goto mongoDB console and trype the below commands one at a time


mongosh
rs.initiate()

## 7b - You will see it say OTHER. Now hit enter and it will change to PRIMARY. Now continue to enter the below commands 
## ----	Swap the password for your choosen password

use admin
db.createUser({user: "root",pwd: "rocketchat",roles: [{ role: "root", db: "admin"}]})
db.auth("root", "rocketchat")
db.createUser({user: "rocketchat",pwd: "rocketchat",roles: [{role: "readWrite", db: "local" }]})
use rocketchat
db.createUser({user: "rocketchat",pwd: "rocketchat",roles: [{ role: "dbOwner",db: "rocketchat" }]})
 
   

######################## ROCKET CHAT CONTAINER INSTALL ##################################

## 8 - Install rocket chat from Community Apps and fill in template as below (change password for your chooen one)

MONGO_URL					mongodb://rocketchat:rocketchat@unraidIP:27017/rocketchat?replicaSet=rs01&directConnection=true
ROOT_URL					https://rocketchat.yourDomain.com

## 9 - Add new variable to the template as below (again change password for your choosen one)

MONGO_OPLOG_URL				mongodb://rocketchat:rocketchat@unraidIP:27017/local?authSource=admin&replicaSet=rs01&directConnection=true