This post discusses the drawbacks of relying on the cloud for startup infrastructure and suggests using self-hosted solutions like Postgres, caddyserver, and docker-compose. It provides a step-by-step guide on setting up a self-hosted Postgres instance and demonstrates how to achieve scalability and load balancing using docker-compose. The post also explains how to use Caddyserver as a reverse proxy for automatic SSL management. The setup allows startups to serve up to 100k monthly users at a cost of $200 per month.
Table of contents
STOP DOING CLOUDThey have played us for absolute fools.Installing postgresInstalling docker on ubuntu 22.04BUT MUH SCALABILITY, LOAD BALANCING, SSL and whatnotDitch Kubernetes, docker compose for the winLoad Balancing & automatic ssl with CaddyserverBACKUPS, SURVAVIBILITYPotential improvementsSummary1 Comment
Sort: