Setting up a production ready VPS is a lot easier than I thought.
To get your own VPS instance visit https://hostinger.com/dreamsofcode and use the coupon code DREAMSOFCODE
It's been a few years since I set up a VPS from scratch, and given how easy it is to now deploy on Serverless platforms, I always thought it would be challenging to replicate the same developer and user experience using a pure VPS.
As it turns out, I was wrong...
This video is sponsored by Hostinger. A big thank you to the team for providing me with a VPS instance to use throughout this video.
Links:-
Hostinger - https://hostinger.com/dreamsofcode
Guestbook Code - https://github.com/dreamsofcode-io/guestbook
Docker Install - https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
Traefik - https://doc.traefik.io/traefik/getting-started/install-traefik/
Watch Tower - https://containrrr.dev/watchtower/
Products I use:-
Portable Whiteboard: https://amzn.to/4d7Eou7
Become a better developer in 4 minutes: https://bit.ly/45C7a29 👈
Join this channel to get access to perks:
https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join
Join Discord: https://discord.com/invite/eMjRTvscyt
Join Twitter: https://twitter.com/dreamsofcode_io
00:00:00 Intro
00:01:10 Requirements
00:03:20 Sponsor
00:04:27 VPS Set up
00:06:02 Add User
00:06:48 Req 1: Domain Name
00:07:41 Tmux
00:08:21 Hardening SSH
00:10:31 Web ApP Running
00:12:16 Containerization
00:13:08 Install Docker
00:13:47 Docker Compose
00:14:45 Firewall
00:17:16 Reverse Proxy
00:19:47 Load Balancing
00:20:23 High Availability
00:21:13 TLS + HTTPS
00:23:33 HTTP Redirect
00:24:15 Automated Deployments
00:27:00 Rolling Release
00:27:58 Monitoring