Software Copy link
Rocket.Chat can be installed on Ubuntu versions 18.04, 20.04, and 22.04.
When choosing the Rocket.Chat image, we will install on your server:
- Rocket.Chat (latest version)
- Docker CE (latest version)
- Docker Compose Plugin (latest version)
- MongoDB (version 4.4)
Rocket.Chat will run in a Docker container. You can find the compose.yml file in /opt/rocketchat.
Getting Started Copy link
To install Rocket.Chat on your server:
- When creating a new Hostman server or reinstalling an existing one, select Marketplace → Rocket.Chat.
- Select a preferred Ubuntu version. We recommend using 20.04 or 22.04.
- Finish creating your server.
Your server will be online in a couple of minutes.
Navigate to your server IP address in the browser: http://your-server-ip/. The setup wizard will open and you can start configuring your Rocket.Chat instance.
While you can access Rocket.Chat via the server IP address, we recommend setting up a domain name, such as rocket.mydomain.com. The A record of the new domain should point to your server IP address.
For secure connection, you should also set up an SSL certificate for your domain, so that Rocket.Chat is available via HTTPS. Follow the below steps.
- Navigate to
/opt/rocketchat:
cd /opt/rocketchat- Open the
.envfile:
nano .envAdd the following content, substituting yourdomain.com with your actual domain name and providing an email address:
ROOT_URL=yourdomain.com
DOMAIN=yourdomain.com
LETSENCRYPT_EMAIL=email_for_Lets_Encrypt
ROOT_URL=https://mydomain.com/- Open
compose.yml:
nano compose.ymlAnd change the ports section from:
ports:
- 80:3000To:
ports:
- 3000:3000- Download
.ymlfor Traefik:
wget https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/traefik.yml -O traefik.yml- Restart the containers:
docker compose up -d rocketchat --force-recreate- And launch Traefik:
docker compose -f traefik.yml up -dIn a couple of minutes an SSL certificate will be issued, and you can access your Rocket.Chat instance via https://yourdomain.com.