Self Host 101 - Set up Coolify | Self Hosted PaaS with Zero Config Deployments
Syntax Syntax
354K subscribers
17,887 views
0

 Published On Apr 27, 2024

In this video CJ shows you what Coolify is, what it does, how to choose a server to deploy it to, how to lock it down with https, how to deploy several types of applications on it, how to setup s3 compatible storage for file uploads / backups and more.

View all the Self Host 101 videos here:    • Self Host 101  

00:00 Intro
00:56 What can you do with Coolify?
02:09 Coolify minimum specs required
02:59 Create a VPS with Hetzner and Set Up with Cloud Config
06:16 ssh into VPS as root and update / upgrade
07:18 Install Coolify
08:29 Coolify: localhost vs remote server
10:25 Update VPS user passwords
11:51 Set up Coolify https instance domain and https wildcard domain
16:04 Why not Cloudflare?
16:41 Create a firewall and lock down all unused ports
17:47 Update Coolify user password and setup 2fa
18:49 Deploy a static website to Coolify with an https subdomain
20:55 www redirects and custom Caddy configs
25:25 Create dynamic proxy configurations
27:04 Create a basic Next.js project in Coolify
28:09 What is nixpacks?
29:37 Deploy a basic Next.js application with nixpacks
31:38 Create a Github application in Coolify
33:31 Deploy a Next.js app with auto deploy
35:41 Create a postgres database for a t3 application
37:10 Create a Dockerfile to push the db schema to our database
40:35 Create a Dockerfile to push the db schema from a private repo
44:46 Deploy a t3 app
47:10 Set up http basic auth with Caddy
51:01 Upgrade Coolify
52:06 Deploy a git repo with an existing docker compose file
59:26 VPS status dashboards
01:00:56 Deploy a service with docker compose
01:04:13 Deploy supabase and monitor VPS status during deploy
01:07:00 Set up minIO / s3 compatible storage
01:10:42 Configure database backups
01:15:17 Coolify cloud demo
01:18:37 Where and how to get help with Coolify
01:22:22 CJ's opinions and final thoughts about Coolify
01:28:20 Thanks!

List to episode 730 of Syntax: https://syntax.fm/show/730/own-your-o...
Coolify: https://coolify.io/

Learn more about hetzner: https://www.hetzner.com/cloud/
Sign up for hetzner with coolify affiliate link (supports the coolify creator): https://coolify.io/hetzner

Cloud Config Example: https://gist.github.com/w3cj/cdd447b1...
Cloud init documentation: https://cloudinit.readthedocs.io/en/l...

Learn about DNS in the Self Host Series:    • Self Host 101 - Run Multiple Apps wit...  

Read the Caddy docs: https://caddyserver.com/
Read the caddy-docker-proxy docs: https://github.com/lucaslorentz/caddy...
Caddy redir directive: https://caddyserver.com/docs/caddyfil...

nixpacks: https://github.com/railwayapp/nixpacks
How nixpacks works: https://nixpacks.com/docs/how-it-works
nixpacks custom file: https://nixpacks.com/docs/configurati...

Learn Docker:    • Start Using Docker Today - Hands On E...  

Dockerfile to clone from private repo with SSH key: https://gist.github.com/w3cj/8b510e32...

Caddy basicauth directive: https://caddyserver.com/docs/caddyfil...

glances: https://github.com/nicolargo/glances
glances docker docs: https://github.com/nicolargo/glances/...
grafana: https://grafana.com
prometheus: https://prometheus.io/docs/introducti...
node_exporter: https://github.com/prometheus/node_ex...
Monitoring a Linux host with Prometheus, Node Exporter, and Docker Compose: https://grafana.com/docs/grafana-clou...

minio: https://min.io/docs/minio/linux/index...

Coolify cloud: https://coolify.io/pricing

Join the Coolify discord: https://coolify.io/discord
Open an issue on Coolify: https://github.com/coollabsio/coolify...
Have a discussion about Coolify: https://github.com/coollabsio/coolify...

Corrections:
5:08 Since v4.0.0-beta.259 - coolify allows for a non root user with sudo NOPASSWD privileges. See description for link to docs: https://coolify.io/docs/knowledge-bas...

------------------------------------------------------------------------------

Hit us up on Socials!

https://www.syntax.fm/links

Brought to you by Sentry - Use code "tastytreats" to get 2 months free - https://sentry.io/syntax

#vps #webdevelopment #selfhosted

show more

Share/Embed