Deploy on Google Compute Engine
Google Compute Engine (GCE) is a scalable and flexible Infrastructure as a Service (IaaS) solution from the Google Cloud Platform. Deploying Rocket.Chat on GCE gives you a robust and reliable communication platform for your organization. In this guide, you'll learn step-by-step through deploying Rocket.Chat with Google Compute Engine.
Preparation Steps
Before you begin, make sure you have the following:
A Google Cloud Platform (GCP) account with billing enabled
Deploying Rocket.Chat on Google Compute Engine
Create a Compute Instance
Log in to Google Cloud Console.
Select a project and navigate to VM instance.
Create a VM instance.
Select a preferred Machine Type (Default: 1cpu, 3.75GB Memory).
Select a Linux image (Default: Debian/ubuntu).
Allow HTTP and HTTPS Traffic.
Click Create.
To learn more about VM instances, see the official documentation.
Deploy Rocket.Chat
SSH into the VM instance.
Install docker on the instance with this command:
Create a container network by running this command:
To install a docker image for MongoDB, run this command:
SSH into the
mongodb
docker container:
Execute the following script to configure the MongoDB replica set:
Exit the docker container.
To install a docker image for Rocket.Chat, run the following command:
Replace the ROOT_URL
with your domain.
Rocket.Chat is currently up and running on the compute engine. To access it, open a web browser and enter the external IP address of the instance.
If you want the containers to start automatically every time the instance reboots, configure the startup script for the instance:
Click on the instance and hit edit.
Under Custom metadata, add an item with the following:
Great job on setting up Rocket.Chat on Google Compute Engine! Now you have a secure and scalable platform for collaboration with real-time communication, monitoring, and backups. Expect better teamwork and productivity!
Last updated