Coolify's NEW Dashboard Makes Self-Hosting Too Easy (Next.js + PostgreSQL) — Transcript
Full transcript
- 0:00Coolify version 4.3 is out, and this
- 0:02video we're going to talk all about it.
- 0:04So, in case you missed it, this version
- 0:07comes with a completely redesigned UI of
- 0:09the dashboard. So, previously we
- 0:11actually used Coolify in some other
- 0:13videos, and you could see that when we
- 0:15deployed something, the UI looked a
- 0:17little bit clunky. It did not look very
- 0:20modern, but they completely fixed it. I
- 0:22think it looks really slick now. So,
- 0:24I'll show you what it actually looks
- 0:25like in practice in a second. Of course,
- 0:28it's not only the dashboard UI that has
- 0:30changed. There are a few other
- 0:31improvements as well. For example,
- 0:33adding a custom domain is much easier
- 0:35right now, and a few other things as
- 0:36well. Now, in case you don't really know
- 0:38what Coolify is yet, it's basically a
- 0:40very easy way to self-host a lot of
- 0:43different services. For example, with
- 0:45one click essentially, I can self-host
- 0:47Postgres. But, we can also self-host our
- 0:49apps like Next.js. So, I did a video
- 0:52here on deploying Next.js with Coolify.
- 0:55This was about a year ago, and you can
- 0:56see it was a very popular video. So, now
- 0:58I want to see what the differences are,
- 1:00and how you would do it uh today with
- 1:02the latest version. If we go to the
- 1:05website, we can see a little bit more
- 1:06about what this is. So, we can
- 1:08self-host, and they're trying to
- 1:09basically replicate some of the popular
- 1:11managed platforms. Right? So, they have
- 1:14about 280 plus uh services that we can
- 1:17self-host. And it's actually really
- 1:18powerful. We can do a lot of different
- 1:19things. We can use all sorts of
- 1:21different frameworks, different
- 1:22languages. Um it can be your own server.
- 1:25So, in this video we will use a VPS. You
- 1:27can do a single server or even
- 1:29multi-servers. And basically, it works
- 1:32with any Docker compatible service. So,
- 1:34under the hood, Coolify basically uses
- 1:36Docker. We can integrate with your Git
- 1:38host. This is actually really nice for
- 1:40redeployment. So, if you make a change
- 1:42in your app, and you re-push to uh your
- 1:44Git host, it will automatically redeploy
- 1:46the app for you. You get free SSL
- 1:48certificates out of the box. We can just
- 1:50add our custom domain with HTTPS in
- 1:52front. Okay, so no vendor lock-in. We
- 1:55can set up automatic uh database backups
- 1:58with uh S3 compatible storage. We can
- 2:00integrate other services with web hooks.
- 2:03So, if you're using GitHub actions, for
- 2:04example, you can also integrate it with
- 2:06an API. There is actually a built-in
- 2:09real-time terminal as well. We can share
- 2:11our projects with our team. And if you
- 2:14want some kind of review workflow or
- 2:16staging workflow, you can deploy
- 2:19different pull pull requests separately.
- 2:21There are several automations and there
- 2:24is a bunch of monitoring built in as
- 2:26well. For example, we can see the logs
- 2:28as our app is being deployed. Very
- 2:30powerful and to actually demonstrate
- 2:32this to you, we're going to deploy a
- 2:34super simple Next.js app just by itself
- 2:37as the first app and then the second app
- 2:39will be an app with a database. So, you
- 2:42can see how you would self-host a
- 2:43full-stack app from absolute scratch
- 2:45with Coolify. But let's start off very
- 2:47simple with just the most basic Next.js
- 2:50app that you can think of. It's just one
- 2:52page. This is a one Next.js app. And
- 2:55what does it have? Well, it just
- 2:57displays a bunch of text, but it does
- 2:59use the Next.js image component. So,
- 3:01we'll see if that works on the VPS. It
- 3:03also has a server action. So, if I click
- 3:06on this, we want to see a response here
- 3:07from a server action. This is all
- 3:09running locally for now and also a route
- 3:11handler. So, we do have a little bit of
- 3:13interactivity here to see if these
- 3:15essential features will still work on
- 3:17the VPS as well. So, let's actually try
- 3:19deploying this with the latest Coolify
- 3:22to a VPS. For the VPS, I'm going to use
- 3:24Hostinger. Yes, I'm partnering with them
- 3:26on the video, but I like using Hostinger
- 3:28for this because they already have a
- 3:30Coolify VPS template out of the box. So,
- 3:32they're already familiar with what we
- 3:33want to do. They've had it for a long
- 3:35time actually, so they're pretty much on
- 3:37the cutting edge. But in case you're
- 3:38using a different VPS, I will still show
- 3:40you how to set it up without the
- 3:41template. Right, so I will actually just
- 3:43show you by starting off from SSHing
- 3:46into the VPS. But you may want to use
- 3:48Hostinger. A lot of people are using
- 3:49Hostinger not just for Coolify. There
- 3:51are actually a lot of other things we
- 3:53can host on the Hostinger VPSs as well.
- 3:56You've seen OpenClaw and Hermes Agent,
- 3:58for example. There's even Buzz now, so
- 4:01all these services keep popping up. And
- 4:03when you have a VPS ready to go, it
- 4:05makes it much easier to quickly try out
- 4:07those new things that are coming out and
- 4:09stay up-to-date. So, I think it's always
- 4:11a good idea to have a VPS ready to go.
- 4:13Well, if you want to use that, check out
- 4:14the link in the description. But if we
- 4:16scroll down for this video, we can see
- 4:19the different options they have. So,
- 4:20these are the options that Hostinger
- 4:22gives us for their VPS. Now, just to see
- 4:24what Coolify recommends as a minimum
- 4:26hardware requirements. So, they say your
- 4:28server should have at least two CPU
- 4:31cores, two gigs of RAM, and 30 gigs of
- 4:34free storage. Okay, so if we take a look
- 4:36at KVM 2 here, we do get two two V CPU
- 4:40cores, eight gigs of RAM, and 100 gigs
- 4:42of NVMe disk space. So, not exactly the
- 4:45same, of course, V CPU and it's NVMe,
- 4:48but I've used this plan for uh other
- 4:50videos as well. I've always had a good
- 4:52time with that. But in case you are
- 4:54anticipating heavier workloads or a lot
- 4:56of people that have to connect, for
- 4:57example, you may want to check out some
- 4:59of these more powerful plans. For this
- 5:01video, I'm going to continue here with
- 5:02KVM 2. All right, on the checkout page,
- 5:04you can use my coupon code, which is all
- 5:07uppercase bytegrad, and if you apply
- 5:09that, you can get an even better price.
- 5:11I would really appreciate it. Uh so,
- 5:13that's all uppercase bytegrad, and uh
- 5:15you can find a link in the description
- 5:17as well. That coupon code will work for
- 5:20both the 24-month plan as well as the
- 5:2212-month plan. So, if you think 24
- 5:25months is a bit much, you may want to go
- 5:26with 12 months and still get a bunch of
- 5:29savings. Although, 24 months does give
- 5:31the most savings, so that's the lowest
- 5:33monthly price here. You have some other
- 5:35options here. I will just leave the
- 5:36defaults. About the server location,
- 5:38they try to uh get it as close as
- 5:41possible to you personally. If you're
- 5:43hosting it for other people, you may
- 5:44actually want to host it closer to their
- 5:46location. And then here they have a
- 5:48bunch of options here to see how we want
- 5:50to deploy the VPS. Because I was on the
- 5:52Coolify page, I already have Coolify
- 5:54selected here. If you don't see it
- 5:55selected here, you can simply search for
- 5:56Coolify here under control panel. You'll
- 5:59see their template. However, I will
- 6:01actually go with a plain Ubuntu install
- 6:03because I want to show you how to
- 6:04install it from scratch. So, I will
- 6:06actually just have a plain OS, and I
- 6:08will just have a plain Ubuntu install uh
- 6:11just so I can show you how to set it up
- 6:13from scratch. However, if you are using
- 6:15hosting our VPS, and you want to use
- 6:16their template, feel free to pick the
- 6:18Coolify template. All right, then I will
- 6:20continue here to check out. All right,
- 6:21so after payment, you may go through an
- 6:23onboarding process. Actually, here we
- 6:25can pick the location. Um so, this is
- 6:27just closest to me. That's fine with me.
- 6:29And here we can pick what to install
- 6:30again. So, again, you may want to go
- 6:31with the Coolify template they have out
- 6:33of the box. You can search for it.
- 6:35However, I will just go with a plain
- 6:36Ubuntu install for this video. In that
- 6:38case, of course, it is very important
- 6:39that you remember your root password, so
- 6:41you can easily SSH into the server in a
- 6:43second. So, make sure you store it
- 6:45somewhere safe. They actually have a few
- 6:46other here as well. Okay, so here we can
- 6:49uh set up the VPS, and uh I'll get back
- 6:51to you when it's finished. All right, so
- 6:52after a few minutes, our VPS is ready to
- 6:55go, and you will see the information
- 6:57here. It may also install a little bit
- 6:59more. Okay, so VPS is created now. We
- 7:01can see the IP address of our VPS, and
- 7:04we can see that I'm just using the plain
- 7:07Ubuntu install. If you picked the
- 7:08Coolify template, you would see
- 7:10something like that. You would actually
- 7:11already see Coolify here at the top. But
- 7:13we're going to do it from scratch here
- 7:15with SSHing into the VPS. Now, just to
- 7:17quickly look around here, so we have our
- 7:19VPS details, so where it is. We have
- 7:21some other information here. Let's
- 7:23actually SSH into our VPS. So, I opened
- 7:26up the terminal app on my Mac, and I'm
- 7:28going to paste this right here. If
- 7:30you're on Windows, you can use the
- 7:31Windows PowerShell, but the commands are
- 7:33the same. Okay, so I'm going to say yes,
- 7:35and then the password that we picked
- 7:37during setup. I will paste that right
- 7:39here. All right, so now we are in our
- 7:41VPS. I'm going to clear this out. And
- 7:43actually, if you're using uh a coding
- 7:45agent like CloudCode on the VPS, you may
- 7:47actually just do it with this. We are
- 7:49doing it manually here, like old school,
- 7:51like 1 year ago.
- 7:52We need to install Coolify. So, if we go
- 7:54to the page there, they have self-host
- 7:55here, and they have a command here that
- 7:58we can run. So, I'm just going to copy
- 7:59this one on the website, and I will go
- 8:02back here and just paste that in here.
- 8:05All right, so here we go. We can see
- 8:06installing packages,
- 8:08pulling some Docker images. All right,
- 8:10here we go. Installation complete. If we
- 8:12scroll up a little bit, we can see your
- 8:15instance is ready to use. You can access
- 8:17Coolify through your public IP. So,
- 8:20basically, it's the IP of the VPS at
- 8:22port 8000. So, let's actually copy that,
- 8:25and let's try and go in there. All
- 8:27right, so here we have the Coolify
- 8:28onboarding. Make sure you're the first
- 8:29person here because this is going to be
- 8:31the the root or the admin user, you
- 8:33could say. All right, so after that, we
- 8:35continue the onboarding, and we're going
- 8:37to see the new UI here. So, this is
- 8:39already new. So, it says, "Welcome to
- 8:41Coolify. What are we going to set up?"
- 8:43Well, well, we can just click on
- 8:45connect, and we can just click on
- 8:46continue here. So, here they have the
- 8:48first option here,
- 8:50what kind of server type we have. So,
- 8:52where are we going to deploy this? You
- 8:55could technically have a different
- 8:57server, for example. However, we're
- 8:58going to do everything on this machine.
- 9:00Okay, once I click there, it was already
- 9:02able to connect, so we immediately go to
- 9:03step three here, in which we create a
- 9:06project. So, a project is just a way of
- 9:08organizing all the resources we're going
- 9:10to deploy. So, if we have a Postgres
- 9:12database server, that's one resource
- 9:14inside a project. The Next.js app is one
- 9:17resource inside the same project. Right,
- 9:19so we have one project here, and now we
- 9:21have that set up, so we can deploy the
- 9:23first resource. All right, here we go.
- 9:25So, now we are in the new UI here, their
- 9:28new dashboard. I think it already looks
- 9:31much more modern. Looks better. You can
- 9:33see, as of recording, I am on 4.3. But,
- 9:36let's take a here. So, here I am on
- 9:39dashboard. We can see all our projects.
- 9:41Well, we have one right now. We have not
- 9:43deployed any resources. We may have
- 9:45multiple servers, right? You may want to
- 9:47have Coolify on one server and then the
- 9:49actual app or database, for example, on
- 9:51some other servers. All of our projects
- 9:53here, right? So, only one. Of course, we
- 9:55have that terminal here. So, we can
- 9:57start a terminal session. We have
- 9:59servers here. We have sources. So, as
- 10:02you'll see when we deploy Next.js, we're
- 10:04going to first do it. We're going to
- 10:06connect to our Git host, which will just
- 10:08be GitHub in this video. It's going to
- 10:10be a private repo. We need to set up a
- 10:12source here for that, so it can connect
- 10:14to it. We have destinations here. We
- 10:16have S3 storage. So, if you want to do
- 10:18some backups, for example, this may be
- 10:20something you want to do. We have some
- 10:22shared variables.
- 10:24If you have a team, we can set up a team
- 10:26with members, even an admin view here.
- 10:28Yeah, you can set up notifications for
- 10:30your team. So, you can build out your
- 10:32workflows here. So, overall, it's it's a
- 10:34simpler here. So, the the sidebar used
- 10:36to have way more options, but it's now
- 10:38greatly simplified. Let's go out to our
- 10:40first project here and actually deploy
- 10:42that Next.js app. So, we're going to add
- 10:44one resource here. And we're going to
- 10:47have the app. We're going to push it to
- 10:49a private Git repository, right? So,
- 10:51let's actually go to our app and let's
- 10:53do that first. So, here is the app. Here
- 10:54is the code of the app. Let's deploy
- 10:56this to GitHub first. So, we will just
- 10:58say new new repository Next.js Coolify
- 11:024.3 demo. I'm going to make it a private
- 11:05repository. It's a little bit more
- 11:06realistic, right? We don't want to show
- 11:08our code to everybody in the world.
- 11:10Okay, creating repository. And now we
- 11:12can just push there. I will just
- 11:14copy those commands and just push this
- 11:17project to there. Okay, so now this
- 11:20should be here on GitHub. Okay, so now
- 11:23we have the project right here. How do
- 11:25we now deploy this here on Coolify? So,
- 11:27we have a few options here to deploy a
- 11:29resource. We can do public Git repo
- 11:31would be the easiest, but realistically
- 11:33you're going to shield your code in a
- 11:36private repo. You can do it with an SSH
- 11:38key. However, it is a little bit easier
- 11:40in my opinion to do it with a GitHub
- 11:42app. We just set up a GitHub app once,
- 11:44and then whenever you have some kind of
- 11:45GitHub repo, you can deploy it. If we go
- 11:47to that source
- 11:49to do it with a source. So, here we have
- 11:50sources. I can simply add a GitHub app
- 11:53here.
- 11:54I will just leave the default options
- 11:56here, and now we can register that with
- 11:58GitHub. So, here is all just default
- 12:00options, and we will be redirected here
- 12:02to GitHub to authorize this. Okay, so
- 12:04now we go back here to Qualify. It says
- 12:07repository access has not been installed
- 12:08yet. So, I'm going to click on install
- 12:10repositories. So, here we can now pick
- 12:12which repositories Qualify should have
- 12:14access to. We can just specify the one
- 12:17we just created. So, it just has access
- 12:19to that particular one. I'm going to
- 12:20install. All right, so now we are back
- 12:22here. So, our source is now set up, and
- 12:25it should have access to that one get
- 12:27repo. So, now we can go back here, and
- 12:30we can add a new resource. Okay, so now
- 12:32we have this one. We can go back to get
- 12:34repository here with GitHub app. We pick
- 12:37the one GitHub app that we just set up.
- 12:38We can now pick the repository. Well,
- 12:40there is only one, so we can load that
- 12:42one here onto Qualify on the onto the
- 12:44VPS. All right, so here it detects our
- 12:46app. It has Real Pack now as the
- 12:49default. Um so, this is different
- 12:51because previously we had Nix packs, and
- 12:53then by default port 3000. So, all of
- 12:55this by default in Next.js. Okay, so
- 12:57then we have the application specific
- 13:00details. So, if I zoom out a little bit,
- 13:02you can see some of the options we have
- 13:04here. We don't have to do almost
- 13:06anything for now. The only thing we have
- 13:08to do actually is go here and just click
- 13:10on deploy. Okay, so here we go. So, now
- 13:12it's going to deploy. We're going to see
- 13:14a history of all the deployments we
- 13:17have, very similar to some of the
- 13:18managed platforms that you're used to.
- 13:20We're going to see the logs here while
- 13:22it's building that out. And under the
- 13:24hood is actually going to dockerize our
- 13:26Next.js app. So, previously we were
- 13:28actually dockerizing Next JS ourselves,
- 13:30and then uh deploying it onto a VPS.
- 13:33However, uh Coolify is doing a lot of
- 13:34that work for us behind the scenes now.
- 13:37All right, so after a few minutes, it
- 13:38says it is finished. So, now we can go
- 13:40to links here, and it will produce a
- 13:42link for us. If we click on that, it
- 13:44should open up our app here live on the
- 13:47internet. So, we can see it uses an S
- 13:49slip domain here, but if we take a look,
- 13:51everything here works. We see the Next
- 13:53JS image, and actually, let's actually
- 13:55try it out to see if that is true. If we
- 13:57click on run server action, we do indeed
- 14:00get a response. If I click on this one,
- 14:02we also get a response here from our API
- 14:04route handler. So, some of the essential
- 14:07Next JS features seem to work perfectly
- 14:09fine here on the VPS uh deployed with
- 14:13Coolify as well. All right, very easy
- 14:15actually. Now, what happens if I want to
- 14:16make a change? So, if I go into my code
- 14:18here locally, and let's say I'm going to
- 14:20add a bunch of exclamation marks here,
- 14:22right? So, here in the code, I'm going
- 14:24to replace that period with a bunch of
- 14:25exclamation marks. So, now I'm going to
- 14:27save it. I saved it here, but this is
- 14:28locally on my own computer. How can I
- 14:30now redeploy? Well, if I just re-push,
- 14:32so if I just add everything, or you can
- 14:35use your AI coding agent, of course, and
- 14:37now I push to GitHub again. So, now I
- 14:40pushed to GitHub. If I now go back to
- 14:42the Coolify dashboard, you can see it
- 14:44automatically redeploys. So, when you
- 14:47set up that GitHub app, it can then also
- 14:49be updated by It can then also be uh
- 14:52notified essentially when your repo is
- 14:54uh being updated. And it will
- 14:56automatically redeploy. So, if I click
- 14:57on that one, we can see there is already
- 14:59a new deployment here in process. And
- 15:01this time it's much faster, you can see
- 15:03it took about 44 seconds uh because,
- 15:05well, uh it can do a bunch of caching
- 15:08when it builds uh the Docker image, and
- 15:10so on. So, initially it may be a bit
- 15:12slow, two and a a bit more than two
- 15:14minutes, but after that uh the re- the
- 15:15redeployments should be much faster. So,
- 15:18now if I refresh here, we see our update
- 15:21live in production as well. Now, it's
- 15:23not the prettiest URL here, so let's
- 15:25actually try connecting a custom domain
- 15:27and also HTTPS. So, here on Hostinger, I
- 15:30have my domain.
- 15:31It's called bitegradcourses.com. I just
- 15:33go to the DNS settings. So, here I can
- 15:36pick an A record and I'm just going to
- 15:39have it for the root. This should point
- 15:41to the IP of my VPS. So, if I go here, I
- 15:45can just see it here in the address bar.
- 15:47I will copy that and paste that right
- 15:49here. Just leave off the HTTP. So, this
- 15:52is going to point to the VPS. I'm going
- 15:54to add the record here. Okay, so now
- 15:56when I go to that, the traffic should go
- 15:58to my VPS and that should be picked up
- 16:00by Coolify here. Now, Coolify will see
- 16:02the incoming request and needs to know
- 16:04which app to route it to, right? Because
- 16:06technically, I could have dozens of apps
- 16:08here. So, here we can go to domains and
- 16:10here we can simply add one. So, I'm
- 16:12going to add it with protocol HTTPS and
- 16:14it's going to be bitegradcourses.com.
- 16:17I can leave the port empty and now I'm
- 16:19just going to save. Now, here it does
- 16:21warn me that there's no
- 16:23DNS record for this yet, but it simply
- 16:25may be just because it may take some
- 16:26time before it propagates. So, I'm just
- 16:28going to continue anyway. All right, so
- 16:30actually right after it does tell me DNS
- 16:32okay. And actually, it also has a nice
- 16:34option here. And actually, it also has a
- 16:35nice option here for search engine
- 16:37indexing and yes, I do want this to be
- 16:39indexable. And it also allows you to
- 16:41specify what it should do here with www.
- 16:44and actually, I want to redirect to the
- 16:45non-www version. Okay, so redirect is
- 16:48updated and we can see there are now
- 16:50some changes pending. So, this is really
- 16:53nice because previously, it was not
- 16:54really clear if we had to redeploy or
- 16:56not. Here, it does specify that we have
- 16:58to redeploy to apply that. We can
- 17:00actually see all the changes that we
- 17:02made. That's also really nice and it
- 17:04says redeploy required. Okay, so now I
- 17:06want to redeploy, so I will say
- 17:08redeploy. You can also manually trigger
- 17:10a redeploy here from the dashboard and
- 17:12here we go. We just have to wait. Well,
- 17:14actually super short, so 6 seconds now.
- 17:17That's very fast. And now if we go to
- 17:19links, we should see our custom domain
- 17:20here. Let's actually try going there.
- 17:23The HTTPS version may take
- 17:25a bit longer to kick in, but if I try
- 17:27the HTTP version, it will actually
- 17:30already show my app here on that custom
- 17:32domain. All right, so bike that
- 17:34courses.com seems to work perfectly fine
- 17:36here. I get the results still everything
- 17:38working. We just have to wait a little
- 17:39bit for HTTPS. Okay, so when you deploy
- 17:41with Qualify, it's using traffic under
- 17:44the hood to set up SSL or HTTPS. It
- 17:48didn't work for me initially because I
- 17:49still had some outdated records here
- 17:51because I've been using the domain for
- 17:52other videos as well. However, I
- 17:54actually tried adding a subdomain here.
- 17:56So I have another A record now for a
- 17:58subdomain also pointing at the VPS IP,
- 18:01and I set up that one here as well. I
- 18:04just did app one bike that courses.com.
- 18:07I just added that here. And then
- 18:09actually it was working for both the
- 18:11root as well as the subdomain. So the
- 18:13root domain now has HTTPS, as you can
- 18:16see. However, I can also go to app
- 18:18one.bikethatcourses.com,
- 18:20and it also works perfectly fine on the
- 18:22subdomain. So there you go, very easy to
- 18:24deploy Next.js with the latest Qualify.
- 18:27But that was an easy one, right? just
- 18:29one page. Let's very quickly take a look
- 18:31at how we could do it with a full stack
- 18:33app with a Postgres database. So I have
- 18:35this CRUD app running here locally, just
- 18:38a to-do's app here. I can click on add.
- 18:41We can click on done, undo, and done
- 18:43again. I can delete. It's using a SQLite
- 18:46database here locally. Okay, so now how
- 18:48can we deploy it with Postgres in
- 18:50production with Qualify? So I pushed it
- 18:52to a private repo again, and then here
- 18:55I'm going to go to that GitHub source.
- 18:57Here for the repositories, I'm going to
- 18:58also allow that particular repo as well.
- 19:02Save. So now we have access to that repo
- 19:04on GitHub as well. But first, we're
- 19:06going to deploy Postgres. It's actually
- 19:09a bit easier to do the database first.
- 19:10So we go to our project here. We're
- 19:13going to add a new resource in the same
- 19:15project. This time I scroll down, you
- 19:17can see all of the services that we can
- 19:19add here, right? So, lots and lots of
- 19:20services, but here we just want to have
- 19:22Postgres. I'm just going to go with the
- 19:24default option there, and I'll click on
- 19:26start. So, just the default options.
- 19:28It's literally a few clicks. It's going
- 19:29to pull the Docker image here, and now
- 19:33after a few seconds, it's already saying
- 19:35database started. By default, it sets up
- 19:37a username and password. The only thing
- 19:39that we need here, though, is the
- 19:41Postgres URL internal. This contains the
- 19:44password as well, so it's hidden by
- 19:45default. So, with this one running, now
- 19:47we're going to deploy a new resource
- 19:50again. It's going to be another Next.js
- 19:52app, new resource from a Git
- 19:55GitHub app, right? So, we just pick this
- 19:57one, and this time it's the to-do demo,
- 20:00right? So, we can load the repo.
- 20:03We will continue here. Before I deploy
- 20:05it, I will set up the environment
- 20:06variables. So, here we have an option
- 20:08for environment variables. I will add
- 20:10database provider. So, here in
- 20:11production, it should be Postgres. So,
- 20:14I'm using Prisma under the hood, and now
- 20:16it will know that to use Postgres, and I
- 20:18will add another one for the actual URL,
- 20:20so that Prisma can connect to that
- 20:23database. I'm going to add that one.
- 20:25Okay. Now, I can go back here. So,
- 20:28I made changes, so I need to save it,
- 20:29and then we can actually deploy. Okay,
- 20:32let's see how this will work. All right,
- 20:34so after a few minutes, it is ready
- 20:35again. Let's go to the link. All right,
- 20:37here we go. We have our app here. Let's
- 20:39actually see if we can submit it to do.
- 20:41Okay, I can submit it here. I can click
- 20:43on done, undo, and I can also delete it.
- 20:46Let's actually see what happens if I
- 20:48refresh here, so you can see as I
- 20:49refresh, we keep the data. What happens
- 20:52if I redeploy? Do we still
- 20:55get the data like before, right? Because
- 20:58we want to persist data, so the data
- 21:00should not be removed when we redeploy.
- 21:02And that's the real test there. So, I'm
- 21:03going to redeploy the app, and we'll see
- 21:05if this TST2 to do will be brought back
- 21:08from the database into the app again.
- 21:10Okay, after 9 seconds we have a
- 21:13redeployment here. If I refresh now, you
- 21:15can see we still get this data here. So,
- 21:18this seems to work perfectly fine here.
- 21:21A full stack app with a Postgres
- 21:22database here deployed with Coolify. Of
- 21:25course, I can enable HTTPS again with a
- 21:27custom domain just like before. We can
- 21:30also see the logs here. So, we can see
- 21:31runtime logs here actually. So, you can
- 21:34see some next JS logging. Let's actually
- 21:36go to the Postgres uh database. So, here
- 21:39we have Postgres. Here we can see
- 21:41runtime logs. So, here we can also see
- 21:43Postgres up and running. And that's how
- 21:46easy it is to deploy full stack
- 21:48applications or all the other services
- 21:50that Coolify offers as well. I would say
- 21:52set up a Coolify instance on a VPS and
- 21:55you can go through the catalog of
- 21:57services that Coolify offers out of the
- 21:58box. And you'll see how easy it is to
- 22:01set up and deploy those services. In any
- 22:03case, check out Hostinger's VPS with the
- 22:05link in the description and my coupon
- 22:07code all uppercase bytegrad. I would
- 22:09really appreciate it. There's all these
- 22:10new things coming out. So, it's always a
- 22:12good idea to have a VPS ready to go at
- 22:14any moment. So, it's not just for
- 22:16Coolify. You may want to try other
- 22:18things later as well. You can find the
- 22:20link in the description. In any case,
- 22:21thank you for watching and I hope to see
- 22:23you in the next one. Bye.
About this transcript
This page contains the full transcript of Coolify's NEW Dashboard Makes Self-Hosting Too Easy (Next.js + PostgreSQL) by ByteGrad, generated from the public captions YouTube serves with the video. The transcript has 4,802 words across 643 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.