Coolify on Debian 13: self-hosting n8n and the webhook issue
Watch on YouTube ↗ Subscribe on YouTube ↗
Install Coolify with Docker on Debian 13, deploy n8n through it, run into the localhost and webhook domain problems and compare self-hosting with Coolify Cloud.
Video summary
The video covers 8 parts: Coolify Self-Hosting Intro, Install Coolify Docker, Coolify Setup Issues, N8n NGINX Localhost, Webhooks Domain Problem, Coolify Cloud Pricing, Cloud Plan Benefits, and Linux Recommended Setup.
What this video covers
What you build
A Coolify install on a Linux machine used to deploy an n8n instance. The walkthrough shows the setup issues and why a real domain is needed for webhooks.
Tools used
Key steps
- 0:30 - Install Coolify with the curl command, which relies on Docker.
- 1:10 - Work through setup issues.
- 1:40 - Deploy n8n and open it on localhost.
- 2:10 - See why webhooks need a proper domain.
- 2:40 - Compare Coolify Cloud pricing and benefits.
- 3:40 - Hear the recommended Linux setup.
Not covered
- A production server with a public domain and TLS.
- Backups and updates for the instance.
In this video
- 0:00 Coolify Self-Hosting Intro
- 0:30 Install Coolify Docker
- 1:10 Coolify Setup Issues
- 1:40 N8n NGINX Localhost
- 2:10 Webhooks Domain Problem
- 2:40 Coolify Cloud Pricing
- 3:10 Cloud Plan Benefits
- 3:40 Linux Recommended Setup
Questions and answers
What is Coolify?
Coolify is an open-source, self-hostable alternative to Vercel for deploying websites, databases and more than 280 one-click services to your own server, Mike explains.
What do you need before installing Coolify?
A Linux machine with Docker. Mike runs Debian 13.
Why do webhooks cause trouble?
Running on localhost gives outside services nothing to call, so a domain is needed for webhook triggers.
Keep learning
Open-source alternatives to n8n
Want a self-hosted tool with an OSI license? Read n8n alternatives that are open source: 5 tools and their licenses.
Transcript
Hey there, welcome to the channel. In this video, I'm excited to share with you how to host locally host N on your own machine using this platform called Koolifi. There's a link in the description below. It's completely free to get started, and I've got the website pulled up here. As you can see, it allows you to self-host with superpowers.
It's an open-source and self-hostable alternative to Vercel, which I've already made a tutorial about on this channel uh for easily deploying websites, databases, web applications, and 280 plus one-click services to your own server. So, I recently discovered this in my Skool community over here. One of my members made a post about it, and I decided why not just make a tutorial showing how to set this up. I'm running uh Debian Linux.
Read the rest of the transcript
So if I bring up a terminal, I can show you here, I'm on Debian Linux 13. So as you can see, Debian Linux 13, and I've just started up Koolifi using this long command in the uh command line right here. It's uh relying on Docker. So you will need to install Docker and then you can basically run it through Docker and self-host it on your local machine.
So, in order to get started, all you have to do is click on self-hosted right here, or you can choose the cloud, but in this case, I'm just going to focus on self-hosting. And basically, all you have to do is run this curl command right here. So, this is just going to download the uh shell file right here, and it's just going to run that. So, in order to install it, you're just going to run this command.
If I go ahead and do this again, we'll see what happens. Uh, looks like I do need to be root in order to run this. But the fact of the matter is I've already got Koolifi installed on my machine as you can see here. And then in order to run it, you just need to type this command. That's pretty much all there is to it. They have documentation over here as well. Uh, this is the installation documentation. So you can read through this.
Again, you just need to run that command and then you'll scroll down here and at the very bottom you'll find uh some more information that you need to run. So you need to update your SSH key SSH key for Koolifi to manage your server. Then you need to add the public key to your authorized keys in the SSH folder. And you can change the permissions of the main data Coolify folder right here and scroll down and this is how you launch it.
So you launch coolify using docker compose. So you will need to also install docker. In order to do that you just type pseudoapp getit install docker and it should install the docker right here. So you can see docker clean docker doc docker registry. I've already got docker.io. io installed. Um, so I can just exit out of that and do Docker version. So I'm currently on 26.1.5 Docker version right there. So Docker's running and then all you have to do is run this command right here.
And then you'll go to your localhost uh port 8000. So that's what I've done over here, localhost 8000. And as you can see, this is the login screen. So I'm just going to log in real quick. Hopefully I still remember my username and password. Looks like it might be a different username and password. If not, I can always create a new account. Says registration is disabled. So, I need to make sure I'm using the the right account here.
Should be able to log in, but I may have forgotten my password. Yeah, it looks like I can't currently log in. This may not work unfortunately. Um I don't see like an easy way to create an account. I have been having some issues with this. Uh there are other ways to install n8n on your local machine as well such as using nginx or you can just use the official website. Obviously that's always an option as well.
Uh you just click on get started or you know go to pricing and this is another option. So it's just £24 per month. That's the starter plan. You've also got the pro plan for $60 a month. But for me, I would much rather just run this locally on my machine. So, another way to do that is you use a tool called NGNX. So, you can just search here and it it has all the information about running N behind NGNX.
So, if I scroll down, you can see here you just install NGNX. uh you set up the permissions right here and then you will just run nginx. So I'm going to come over here to the terminal and then I can just type n since n is already installed on my computer. I've already made a tutorial showing how to set this up on my channel as well if you want to check that out.
And then pretty much all I have to do is go to localhost port 5678 and boom we're into nin. So, Coolify, it looks like uh that may not work, unfortunately. Uh I may be able to reset my password, but again, that's also not working either. So, it's better just to use NGX. And that way, you don't have to pay for the cloud service through N itself.
The only issue with doing it this way is that you will need to uh set up n to run on its own custom domain because it doesn't currently work for web hooks. So basically if you're running if you want to connect to a web hook for example need to come over here and you need to enter in the domain which doesn't work on local host.
I would recommend honestly just using mate.com because it can do a lot of the things that you need anyway for building automations. As you can see, I've already got a bunch of different automation workflows that I've created in mate.com. And it's just really, really easy to use. I would say, you know, even easier than n. There's more of a steep learning curve for n, but it is a lot more powerful in terms of actually building AI agents. These are just automations.
They're not actually fullyfledged agents, which you can really only build within N. Um, you know, OpenAI just recently came out with their own solution as well, which is the agent builder tool, but it's very limited in my opinion in terms of what it can do. NA is still the king for building fullyfledged uh AI agents. So, if you want to get this set up properly, you will need to basically uh use your own custom domain. So, there there's all these instructions here.
And then you can see here, this is how you set up your domain. You have to install something called bot. So, I've already tried this multiple times here. We can try it one more time. I'm just going to run ngx and then I'm going to put in my custom subdomain here, which is n8n.bot botconulting.com. That's where I want to actually run the server from. So, it's going to run this and it's going to request a certificate and then it's just going to fail.
So, if anybody knows how to fix this, I've spent a lot of time debugging and trying to figure out how to get this to work properly. And unfortunately, it never works. Just says some challenges have failed when I run the search bot. So, it's not actually able to redirect and that's going to cause issues with setting up the web hooks.
So, for example, LinkedIn right here, you need to add your credentials and then uh for if you're using a specific web hook, it's not going to work properly. So, the other option would just be to run this in the cloud using Koolifi. So, we could click on cloud instead. And then again, that is going to cost something, but it's very affordable right here. So, if you want to just run it on the cloud, that's probably the best option.
Um, self-hosting is completely free, but to run it on the cloud is still only $5 per month. So, that's, you know what, like 20 $25 cheaper than using N itself. And in order to do that, you can just say get started in the cloud here and that will create the account. Now I have to verify my email address. So in order to do that, I'm just going to open up my email client which I use best bird better for this.
It's basically like a derivative of Thunderbird which is even faster. And for my browser I'm using fire firefox nightly. So this is like the bleeding edge, cutting edge uh latest version of Firefox on Linux. So it's really really fast and uh yeah. So I'm just going to verify my email address real quick. And from here I can obviously just subscribe to the cloud plan and that's $5 per month. Includes connected unl unlimited servers, deploy unlimited applications, free email notifications, support by email and all upcoming features.
So, that sounds even better honestly than self-hosting it, which is quite complicated and it's better, you know, just to get the cloud service. So, I'm just going to pay for this. It's only $5 a month and then I can start using Koolifi. I'll I'll make another tutorial showing how to run NA in uh on the Koolifi uh cloud service a little bit later. Uh but in this one, I just wanted to show you the basics to get started.
And then of course there is also the option of using NGX. And I would highly recommend using Linux to do this stuff. Just makes things a lot easier. Uh you can you can install anything you want over here. I've even got like a software package installer here built right into Debian as well. So pretty much anything that I want I can install through here. They have a lot of the same applications and I can even run games on here as well using Steam.
So very powerful what you can do with Linux and yeah I'd highly recommend switching over to Linux uh if you're going to be doing anything programming related or building AI automations could be anything really and it's a lot faster than Windows as well. So, with that being said, I'm going to sign off and um I'll see you in the next tutorial.



