by Shubham Sachdeva

1. Create a Google Cloud Project

  1. Go to Google Cloud Console.
  2. Click the project dropdown (top-left) → New Project.

2. Enable Required APIs

  1. In the Cloud Console, click the ≡ menu (top-left) → APIs & Services → Library.
  2. Search for Compute Engine API → Click Enable.
  3. Search for Cloud SQL API → Click Enable.

3. Create a VM Instance (Virtual Machine)

  1. Go to Compute Engine → VM Instances → Create Instance.
  2. Setup a static IP (Optional)

4. Open Ports for n8n

n8n uses ports 5678 (HTTP) and 5679 (HTTPS). Think of ports as doors—we need to open them so n8n can communicate with the internet.

  1. Go to VPC Network → Firewall → Create Firewall Rule.

5. Connect to Your VM via SSH

  1. Go back to Compute Engine → VM Instances.
  2. Find your n8n-server instance → Click the SSH button (a black terminal window will open in your browser).

6. Install Docker

In the SSH terminal, run these commands one by one.