Setting Up a Self-Hosted N8N Instance
Learn how to set up your own self-hosted N8N automation platform using AWS Lightsail and Easy Panel in this step-by-step tutorial. No complex Docker configurations needed!
Transcript
Setting Up a Self-Hosted N8N Instance === Chelle: [00:00:00] all right, so what you do is you create your own Amazon hosting or an Amazon AWS account. And then I use what's called Lightsail because Lightsail is much u easier to use than like EC2 or anything else. It is much, much easier. I'm gonna pull up my, I'm gonna need my authenticator here in a second. Okay, so I'm gonna log in to this account and then I'm gonna do my code because I have two factor authentication. Okay? So the easiest way to do this is you create an instance. And you can choose from all of these things. If you're going to do self-hosted N eight N, go ahead and do an operating system, iOS only, and then you're gonna do Ubuntu 22.04. You're not [00:01:00] gonna do the 24 0 4, you're gonna do the 2204. And then you're gonna choose the instance that you want. What I usually do is I go for the $12 a month version. You get the first 90 days free. You can always upgrade, but you can't downgrade. And if, and I've done it with these two versions, and it runs so slowly, you really can't do anything with it. So you're gonna choose the $12 a month version, and then you're gonna go create instance. And then that's going to go create an instance for you, and it's gonna do a bunch of stuff behind the scenes. While this is working, you're gonna go to Easy panel.io and you're just gonna grab this. Thing right here. And easy panel is a server control panel. So it, you don't have to like load Docker or any of the other stuff in advance of it. You can just literally set up easy panel [00:02:00] and away you go. Bob's your uncle. So while this is booting up, it's gonna take a minute you can leave it running on an IP address. It's not a big deal for you to run it on an IP address. But you can, like I do, I have [email protected], right? So I have it running on my own system. And the reason why I do that is because I call back to it using APIs all the time, so it's easier. They like it if you have a domain name as opposed to a, an IP address. Okay, so once you've got Ubuntu running, you can go into the networking part here and you can attach a static ip and then you'll get your own static ip. If you just leave it as one of, as this IP address, this could change. My experience is it doesn't change very often, but you can go ahead and attach a static IP to it. Then once you've got it running, you can go to connect [00:03:00] here. Then you can do connect using SSH and that pops open your shell, a terminal window, and then you can do pseudo dash i that changes you into the root, right? Otherwise, you're a sub user and then you're in the root, and then you can just paste in. Whoops. Sorry, I got that. Shell comment but it didn't stick. It kept the zoom. You go back over to easy panel, copy this back over here, and then just paste this in and then it runs and it loads easy panel and it's gonna execute docker. It's gonna do all kinds of stuff behind the scenes. Right here. And then while this does this, you're gonna go open up a couple of ports on light sale because by default the only ports that are gonna be [00:04:00] open are 22 and 80 and you're gonna need two, two more. So that it knows to accept. Otherwise it's just gonna firewall and hang there. So you're gonna add a rule and you're gonna put port 3000 in. 'cause that's what easy panel runs on. Then you're also gonna run 80 80. That's not strictly necessary, but it's helpful. And then you just hit create. And then that's it for the moment. This is gonna run and download and do all kinds of stuff, and it's gonna get all of your stuff done. Then then once that's done, you're gonna go to that IP address. Whatever it was colon 3000. So mine is at panel dot storyteller os.com. And it's gonna ask me maybe to log in. Probably not. 'cause I'm already logged in. The first time you run easy panel, this is going to be an admin screen where you tell it your email address [00:05:00] and your password. The first time it's gonna go through an admin here, and then that's done. And then you're gonna log in. And then you're gonna come to this window where you can load all kinds of stuff as projects. And N eight N is one of them. So you can do a new project. So I'm just gonna do N eight, N two and then hit create. And then when you go to service right here, you have all of these choices for things, and you're just gonna go to N eight N. And there it is. Oh wow. And it, and yeah. And then what it does is it creates it, and then it's gonna launch it, deploy it, and be done with it. I know, Jocelyn, right? I know. It's, it is. It is genuinely the easiest thing in the world. I don't wanna, I don't wanna, I don't wanna downgrade how hard it is for me to figure this stuff out, but once I figured [00:06:00] it out, I'm happy to share it with you. Speaker 2: Yeah I appreciate you figuring this out and sharing it with us so that we don't have to do it. 'cause I was breaking my brain yesterday researching stuff and I was like, you know what? Why am I doing this? I know someone who's already done it. It's Speaker: a lot. No joke. It's a lot, right? Speaker 2: God. Speaker: And so once this is done, you'll see a green light here. For Deploy and then you'll be ready to go and it's, and then this is it. Now it says the editor is ready to go and then here's N eight N right here. And so you can run it. I'm so glad you just did this video, because I'll have to go step by step. Speaker 2: Yep. And then, yeah I'm gonna sit down, watch the video on one screen and just set it up according to the video. I know. Jocelyn's Speaker: Yep, me too. Me too. So this is it. So this is, so now you've got locally running N eight N. This first one is you set up the owner account back on Easy panel. What you do is you just hit this open button right here and it keeps everything behind the scenes straight and it, and this is a [00:07:00] log window so you can see what's happening here. Now, there's a couple of things that you might want to go. This is great for testing. When you're gonna go to production, you're gonna want to be sure that you've. Lock down your domain name, you're gonna want to be sure that you've got, security locked down. You can add a, you can add a login before your login. There's all kinds of things that you can do here, but you, I, you really don't need to if you're just gonna play with it. And then once you're in, so let me just create a second account here. And then you can say, I wanna receive it next. It's gonna set it up and I don't care. And then it's gonna say, what are you doing it for? I am there and now. You can, I would get the free license. I'm gonna skip this right now and then here you go. You're in NAN. You've got your own. Speaker 2: Nice. Speaker: Yeah.[00:08:00] Beautiful. And you've got all your credentials and you've got all your executions, and you've got all the templates, and you've got everything you need. Speaker 2: Yep. This is Speaker: sweet's. Pretty cool. And then if you if you blow it up and you screw up and you go, oh wait, I didn't mean to do that. You can go in here and you can destroy it and go, oh, I didn't mean to do that. And then, then you can destroy your project setting if you like. You can have all kinds of different ones in here. And there are a ton of things. And then you can see, what your CPU is and what your memory is and what your disc space is and all this. And this is how I self-host base row, which is my Airtable dupe. This is where I self-host chat whooped, which is running all of our chats and an API for all of our [00:09:00] chats. This is where I'm running next cloud, which is our Google Docs. Dupe, and this is where I'm running WVI eight, which is our vector database. Nice. So you're not paying subscription fees for any of these things? Just that I pay subscription fees because I use them like in chat. But no, I have a local chat here and I have in a different environment. I have I have a different, I have a, I have what's called an SLM which is, I use Llama I need to do lowercase, so I have Llama, which is a local, a local LLM. Oh. So you could run queries and interact with O OpenAI, GPT. You've got a web-based interface. It has pretty much everything you need in here. This I have on a different, because this is a little bit of a [00:10:00] service hog but it runs as my own, on my own instance, it calls back. This is why, like for direct to readers, this is our closed environment. It's API to API. It doesn't feed out to anything else. It doesn't do anything else outside of what? I tell it to do in the space that I want it to be in.