Simplify Hosting n8n on Azure VM with My Starter Kit! 🚀

Hi everyone,

I’ve been working with n8n and Azure for a while, and I realized that hosting n8n on Azure Container Apps can sometimes get expensive for always-on workloads due to persistent memory usage and additional costs for a Postgres database. To address this, I created a simple starter kit to help you host n8n on an Azure Virtual Machine with Docker Compose.

Features of the Starter Kit

  1. All-in-One Setup: Host n8n and Postgres on the same Azure VM to save costs.
  2. Automated Backups: Easily configure continuous backups for your Postgres database and store them in Azure Storage.
  3. Cost-Effective: A single VM setup can significantly reduce your hosting costs compared to Azure Container Apps.
  4. Customizable: You can tweak the setup to fit your specific needs or infrastructure.

Why This Setup?

  • n8n needs to run 24x7 for workflows triggered by cron, webhooks, or polling, which makes container-based platforms like Azure Container Apps potentially more expensive for always-on workloads.
  • With this setup, you get full control over your hosting environment while keeping costs predictable.

Get Started

Check out the repo here: n8n Azure VM Starter Kit

Feel free to give it a try, share feedback, or contribute to improving the project. Let me know if you have any questions or run into issues—happy to help!

1 Like

Hey,

I want to try out your repo. It looks like my current container, but with postgres instead of the default mysql.

I noticed that you haven’t added caddy service to the stack.

How does that work?

Edit: Ok, so I checked out your setup.sh. Am I assuming right that you installed caddy directly on the machine?