Deploy federation in existing rocketchat

Description

I have a question. i have two rocketchat self hosted servers that is up and running with snap package. now i want to enable federation on both of this servers to users from A can send message or create group and communicate with users in server B.

In this doc, i can see the script install another rocketchat server as well and enable the federation on that rocketchat server. but i don’t want this method. i already have two rocketchat server and i want to connect them to each other.

how can i do it? any idea?

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Ubuntu 22
  • Deployment Method: snap
  • Number of Running Instances: 2
  • Proxy: NginX
  • Firewalls involved: No

I think you can use the manual install and then substitute snap for docker.

But, you will need a matrix server as well. And I think that will require docker.

https://docs.rocket.chat/docs/deploy-a-federated-rocketchat-workspace-with-docker#standalone-manual-installation

You may be better off building a test setup with docker first. If you make a mistake it is very difficult to go backwards and you may need to do a complete restore. Multiple good backups are a pre-requisite.

Can i use the manual script and install all of the containers and then create mongodump of my snap server and restore it in new server? this way can i have the matrix and rocketchat or the script have some adjustments in rocketchat database as well?

I would use test VMs for everything to make sure you know precisely what you are doing - if you make mistakes the pain level is high.

I would test EVERYTHING several times before you commit to each stage.

Make sure you have copious backups and TEST THE RESTORE.

I’d migrate your snaps to docker first and make sure it is all OK. Do a couple of test runs to make sure it restores OK.

Do NOT use the ‘latest’ tag in your compose file - you will get nasty surprises if you are not careful - use a specific version.

Remember the collections need renaming from ‘parties’ to rocketchat’ (IIRC - there is information here how to do it if you search)

Then check all your reverse proxies etc etc.

Then back it all up AGAIN, and then follow the guides to add matrix.

Run a couple of test VMs with your existing data and a test Matrix server.

Pay particular attention to the DNS records required and make sure they all work correctly. Mistakes made will require a restore from backup so be VERY careful.

“Prior preparation and planning prevents poor performance” :rofl: