• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Install Rocket.chat on Plesk with Docker ?

Symer

New Pleskian
Server operating system version
Debian 11.7
Plesk version and microupdate number
18.0.55
Hello everyone.
It's all in the title and I really can't figure it out. I really can't do it.
My level is beginner. Can you help me please ?

Here's what I've done so far:
- Install Docker on Plesk: OK
- Install MongoDB: OK
- Install Rocket.chat: OK
- Install NodeJs: OK (but it keeps stopping)
- Upload files to FTP: OK

But when I access the url through my web browser, I mark https://chat.domaine.com:3000

The page does not respond, or rather the browser tells me that the page is taking too long to respond.
 

Attachments

  • Capture d'écran 2023-10-03 143129.png
    Capture d'écran 2023-10-03 143129.png
    35.2 KB · Views: 7
  • Capture d'écran 2023-10-03 143155.png
    Capture d'écran 2023-10-03 143155.png
    19.7 KB · Views: 7
To setup a secure Rocket.Chat instance via Plesk and Docker containers can be challenging on a beginner level.
The NodeJS und FTP part is not needed at all.
To help you further we need first to see your container settings for MongoDB and Rocket.Chat.
 
First of all, thank you for your message.
Plus I've never used Docker. But I really think it's a powerful tool that I would like to know how to use.

For my problem, so this means I can remove the Nodejs container?

Attached are the parameters of the MongoDB and Rocket.Chat containers
 

Attachments

  • MongoDB.png
    MongoDB.png
    70.7 KB · Views: 13
  • RocketChat.png
    RocketChat.png
    74.6 KB · Views: 12
MongoDB 7.x is not yet supported by Rocket.Chat. Version 6 is the way to go.

Basically the following steps would give you a Rocket.Chat instance based on two containers:

a) Setup a MongoDB container, e.g. Image: bitnami/mongodb:6.0.13
Settings:

mongodb.png
Also connect to the newly created MongoDB and initialize the replica set:

Code:
rs.initiate({_id:'replicaset',members:[{_id: 0, host: 'YOUR-IP:YOUR-PORT'}]})

b) Setup a Rocket.Chat container, e.g. Image Image: rocketchat/rocket.chat:6.6.6
Settings:

rocketchat.png

Finally in the Apache & nginx Settings disable the "Proxy mode" and add the following "Additional nginx directives" for your domain:

Code:
# see https://docs.rocket.chat/deploy/rocket.chat-environment-configuration/configuring-ssl-reverse-proxy
location ~ ^/.* {
    proxy_pass http://0.0.0.0:3001;
    proxy_set_header Host             $host;
    proxy_set_header X-Real-IP        $remote_addr;
    proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;

    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection "upgrade";
    proxy_set_header X-Forwarded-Proto http;
    proxy_set_header X-Nginx-Proxy true;
    proxy_http_version 1.1;

    proxy_redirect off;
}

Helpful documentation to understand the posted setup can be found here:

MongoDB Docker Container
Rockat.Chat Docker Container
Configure a Replica Set for MongoDB | Rocket.Chat Docs
Deploy with Docker & Docker Compose | Rocket.Chat Docs
 
Back
Top