N8N METHOD Lifetime

MR.DARK1.1

MR.DARK1.1

Premium Member
Joined
April 6, 2025
Messages
302
Reaction score
4,468
Points
93
Steps

1. Create a Google Cloud account
https://cloud.google.com

Activate Google Cloud Console.

Get free credit for the first time (usually $300 for 90 days), and after that, you'll still have the free server (e2-micro).

2. Create a server (VM Instance)

Go to Compute Engine → VM Instances → Create Instance.

Select the e2-micro (free) device type.

Choose the Ubuntu 22.04 LTS operating system.

Enable HTTP and HTTPS ports while creating the server.

3. Connect to the server and install Docker

Open an SSH window from within the Google Cloud dashboard or from your device:
shell

sudo apt update && sudo apt upgrade -y
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
Then log out and log back in to enable privileges.

4. Create a folder and run n8n 📌

Create the project folder:

mkdir n8n && cd n8n

Create a file named docker-compose.yml and type:
version: '3.8'
services:
n8n:
image: n8nio/n8n:latest
restart: always
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=strong_password
volumes:
- n8n_data:/home/node/.n8n

volumes:
n8n_data:
Run the container:
docker compose up -d

5. Open port 5678

From Google Cloud → VPC Network → Firewall → Create Rule

Add a rule to allow connections on port 5678 (TCP).

6. Access the n8n panel

Open a browser and type:

http://<server_address>:5678

Log in with the name and password you specified in the docker-compose.yml file and enjoy!
 
Top