Skip to main content

Rocket.Chat installation on AlmaLinux/Rocky Linux

Updated over a month ago

Introduction

Rocket.Chat is a Web Chat Server, developed in JavaScript, using the Meteor full-stack framework as a Slack alternative.
​
It is a great solution for communities and companies wanting to privately host their own chat service or for developers looking forward to building and evolve their own chat platforms.

Prerequisites

  • Operating System: AlmaLinux 8/9 or Rocky Linux 8/9 (64-bit)

  • CPU: Minimum 2 CPU cores (4+ recommended for production)

  • RAM: Minimum 2 GB (4+ GB recommended)

  • Disk Space: At least 30 GB SSD (more if storing files/media)

  • Docker Engine & Docker Compose

  • Root or Sudo privilege.

Installation

Update your system

Always keep your server up-to-date.

dnf update -y

Install Docker and Docker Compose

If you don't have Docker and Docker Compose installed, you need to set up the Docker repository. Afterward, you can install and update Docker from the repository.

Install the dnf-plugins-core package and set up the repository.

dnf -y install dnf-plugins-core
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo

To install the latest version, run:

dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Start Docker Engine

systemctl enable --now docker

Fetch the compose file

Use the curl command to download the compose.yml file by executing the commands:

cd /opt

curl -L https://go.rocket.chat/i/docker-compose.yml -O

Create a .env file

Create a .env file with the following command and paste the contents of the official .env.example file.

nano .env

Paste in the content. (for HTTPS)

# see:- https://github.com/RocketChat/Rocket.Chat/releases
RELEASE=7.9.3
ROOT_URL=https://YOUR_DOMAIN_NAME
BIND_IP=127.0.0.1
DOMAIN=YOUR_DOMAIN_NAME
LETSENCRYPT_EMAIL=YOUREMAIL@ADDRESS

Start Rocket.Chat

Save the .env file and start up the Rocket.Chat container by executing this command:

docker compose up -d

Access your Rocket.Chat workspace

To access your workspace, visit

http://YOUR_DOMAIN_NAME

Run Traefik (for HTTPS)

Download the Traefik template by running the following command:

curl -LO https://raw.githubusercontent.com/RocketChat/Docker.Official.Image/master/traefik.yml

Recreate the existing Rocket.Chat container:

docker compose up -d rocketchat --force-recreate

Start traefik:

docker compose -f traefik.yml up -d

Did this answer your question?