How I deployed an n8n instance on Google Cloud Platform for free

My experience setting up n8n on GCP

I recently tried my hand at deploying an n8n instance on Google Cloud Platform. Here’s a quick rundown of what I did:

  • Used a GCP e2-micro instance (free tier)
  • Pulled the n8n Docker image from GitHub
  • Set up my own domain

I chose this route because:

  1. The client needed everything on Canadian servers
  2. They were already using GCP
  3. I wanted to learn more about the process

It was tricky figuring out IAM, firewalls, SSH, and Docker stuff. But now I feel like I really understand how it all works.

The GCP free tier is pretty good if you stay within the limits. My e2-micro has been handling my workflows fine. I only paid 21 cents last month, mostly for networking and storage.

Has anyone else tried self-hosting on cloud providers? How’s it working out for you? I’m curious about performance and reliability compared to managed hosting.

I’ve been running n8n on DigitalOcean for about 6 months now, and it’s been quite a journey. Initially, I went with their $5/month droplet, which was adequate for my needs. However, as my workflows grew more complex, I had to upgrade to the $10 plan.

The setup process was straightforward, but I did hit a few snags with nginx configuration and SSL certificates. It took some trial and error, but I eventually got everything running smoothly. One thing I’d recommend is setting up regular backups of your n8n data - I learned this the hard way after a botched update.

Performance-wise, it’s been rock solid. I’m running about 20 active workflows, including some fairly data-intensive ones, and haven’t experienced any significant slowdowns. Uptime has been excellent too, with only one instance of unplanned downtime in the past 6 months.

If you’re considering scaling up in the future, you might want to look into load balancing options. I’m starting to explore this as my usage increases. Have you thought about how you’ll handle growth on your GCP setup?

heya, i’ve been using azure for my n8n setup. it’s pretty sweet! got a b1s vm (cheapest option) running smoothly. took me a while to figure out the networking stuff, but now it’s cruising. spent maybe $5 last month? not bad at all.

only hiccup was when i messed up an update lol. learned to backup the hard way. u got any tricks for keeping costs down on gcp?

I’ve had a similar experience deploying n8n, but on AWS instead of GCP. The process was quite enlightening, especially when it came to configuring security groups and setting up the EC2 instance. One thing I found particularly useful was utilizing AWS’s Elastic IP to maintain a static IP address for the instance. This made domain configuration much smoother.

In terms of performance, my t2.micro instance (AWS’s free tier equivalent) has been surprisingly capable. It handles most of my workflows without issue, though I did notice some sluggishness with particularly complex ones. Reliability has been solid so far, with no unexpected downtime in the past three months.

Cost-wise, I’m in a similar boat to you. My monthly bill hovers around $1-2, mainly for data transfer and storage. It’s been a cost-effective solution for my needs. Have you considered implementing any backup strategies for your n8n data?