• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Install docker image (RocketChat), on a domain / webhotel.

LionKing

Regular Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian Web Host Edition Version 18.0.64 Update #1
Hello.

I'm bit confused over how this works with installing a image using docker.

How do I install and deploy it on specific web hotel / domain name within Plesk?

We wish to use and install Rocket Chat, Rocket.Chat: Communications Platform You Can Fully Trust, (Documentation/install here https://docs.rocket.chat/docs/deploy-with-docker-docker-compose), as we need it for team collaboration for our employee/team.

I am fresh newbie on Docker so I been reading a lot,

I cannot seem to figure out how to actually deploy and install a docker software on a specific domain / web hotel instance which i have setup. In the "new Domain" walk through you have only these options:
1729157837312.png

The only place i can find it is in settings/docker with a limited option.
1729157909939.png
It seems that it just installs the web app globally?
I don't hope it overwrites the whole server too?

How do I actually install it the web app on the desired web hotel instance?

Please kindly advise.

Thanks in advance
Kind regards
 
Thank you for your kind reply and the link @Anatolii Zaporozhets :)

So if you run the docker image it won't overwrite already existing things/the server?

I did test and clicked "run" on the docker image and it went on to install it directly in the server outside of the web hotel system. (I did cancel the last step though).

Thanks in advance
Kind regards
 
What do you mean by 'web hotel system"?

As far as I understand the docker image will be installed directly on the server and the containers also will run on the server where the Plesk is installed.
The FREE version of extension works this way. There is also payed version of extension that adds remote node support.

So if you run the docker image it won't overwrite already existing things/the server?
This is should be a safe operation. You always can remove downloaded images and started containers directly from Plesk interface or manually through ssh connection.

There is also a Docker extension documentation. Probably you will find some additional information there.
 
Last edited:
We have several Rocket.Chat instances for our clients, based on Docker containers in Plesk. However, the setup is not that easy.

Here you can find the solution I posted some time ago:

Install Rocket.chat on Plesk with Docker ?
Thank you very much for your reply and the link @Hangover2

Well I found this guide which seems reasonable, maybe you could take a peak on it?
Installing Rocket Chat on Plesk Obsidian on Ubuntu 18.04.4 LTS

There is this step in the above guide:
1729293029440.png
which I'm quite uncertain of if I should follow it where you edit the etc/host file with nano as you can see in the above screenshot,

Our current host file looks like this:

1729292957607.png
But since we do use Plesk in the company to control and partition our servers for various business functions and Plesk is obviously controlling this server (and we have loads of other business applications running on this server through Plesk in separate web hotels).

So I don't want to add any additional lines in the host file that might potentially mess up the Plesk configuration and shut down other mission critical biz web apps unless it I know it is safe to do so. Should I ignore this step?

Is the guide good enough or is there more to it?

Thanks in advance.
Kind regards
 
What do you mean by 'web hotel system"?
I mean Plesk works after the principle of each website is owned by a "customer" which then uses their instance in the server to install on their domain some XYZ form of web app.
So one instance = 1 web hotel.


Although we use just Plesk internally in our company to manage and partition our servers to various business functions.,. (We do not resell hosting). We have a lot of mission critical business functions running where each has its own "web hotel" instance.
 
So installed but I'm getting errors:
Attempting to open the site with rocket chat generates >>>:
Server Error 502 Bad Gateway


Server logs for the domain / web hotel generates this error:
1729377356959.png
I have added the host directory path (/var/www/vhosts/sub.domain.xyz/) in the docker/mongo container settings..

Not sure what to do from here...
:rolleyes:
 
Checking the logs of the two containers mongo and rocket chat reveals errors:

Mongo DB:
bash: line 3: mongo: command not found
bash: line 3: mongo: command not found
bash: line 3: mongo: command not found

RocketChat:
Simple URL Shortener

It seems that Rocketchat has connections issues and that Mongo is not starting up properly.
Any suggestions on how to solve this?

Thanks in advance.
 
You are awesome @Hangover2!
Thank you so much; this it is very appreciated! :)

I will check out your RocketChat guide straight away.

We use ubuntu server 20.04 on our server. Anything specific to think of since you use Debian 12 in the guide?

Kind regards
 
Quick Question @Hangover2...
root@server ~ # chmod 777 /var/www/docker/chat.data-horizon.de/mongodb/data
Is it really necessary with such high permissions on the those folders?
I mean 777 opens for the whole internet in theory... (Although it is not really a internet served directory)
Why not just 755 instead for example?

Thanks in advance.
 
I'm getting this error when I start the RocketChat container:
Pastebin link

I'm guessing it is a connection error to the Mongodb?

I have opened the firewall ports incoming/outgoing as advised.
1729473532729.png

Could it be a character issue with the root password/ mongo key?
I usually use quite long complex passwords generated though LastPass. Upper/lower/numbers/symbols etc. characters.

Thanks in advance
 
The error on the RocketChat container always seem to be the same:

/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:218
throw error;
^

MongoServerSelectionError: Server selection timed out after 30000 ms
I'm not sure why it does that. I been searching for hour on duckduckgo and Google but I cannot seem to find definitive answer.

I have also tired and tested with a silly simple mongodb root password e.g. like "941633227762821791" just to test if the characters in the password was an issue. It isn't. So somehow I am guessing time timeout has to do with RocketChat attempts to connect to Mongodb, but is refused the connection and thus fails and throws that error?

Any thought/ideas please?

Thanks again!
 
Back
Top