I use Hetzner, Contabo, Time4VPS and other platforms in pretty much the same way (as IaaS VPS providers on top of which I run software, as opposed to SaaS/PaaS), but here's a quick glance at how I do things, with mostly cloud agnostic software.<p>> deploy from source repo? Terraform?<p>Personally, I use Gitea for my repos and Drone CI for CI/CD.<p>Gitea: <a href="https://gitea.io/en-us/" rel="nofollow">https://gitea.io/en-us/</a><p>Drone CI: <a href="https://www.drone.io/" rel="nofollow">https://www.drone.io/</a><p>Some might prefer Woodpecker due to licensing: <a href="https://woodpecker-ci.org/" rel="nofollow">https://woodpecker-ci.org/</a> but honestly most solutions out there are okay, even Jenkins.<p>Then I have some sort of a container cluster on the servers, so I can easily deploy things: I still like Docker Swarm (projects like CapRover might be nice to look at as well), though many might enjoy the likes of K3s or K0s more (lightweight Kubernetes clusters).<p>Docker Swarm: <a href="https://docs.docker.com/engine/swarm/" rel="nofollow">https://docs.docker.com/engine/swarm/</a> (uses the Compose spec for manifests)<p>K3s: <a href="https://k3s.io/" rel="nofollow">https://k3s.io/</a><p>K0s: <a href="https://k0sproject.io/" rel="nofollow">https://k0sproject.io/</a> though MicroK8s and others are also okay.<p>I also like having something like Portainer to have a GUI to manage the clusters: <a href="https://www.portainer.io/" rel="nofollow">https://www.portainer.io/</a> for Kubernetes Rancher might offer more features, but will have a higher footprint<p>It even supports webhooks, so I can do a POST request at the end of a CI run and the cluster will automatically pull and launch the latest tagged version of my apps: <a href="https://docs.portainer.io/user/docker/services/webhooks" rel="nofollow">https://docs.portainer.io/user/docker/services/webhooks</a><p>> keep software up to date? ex: Postgres, OS<p>I build my own base container images and rebuild them (with recent package versions) on a regular basis, which is automatically scheduled: <a href="https://blog.kronis.dev/articles/using-ubuntu-as-the-base-for-all-of-my-containers" rel="nofollow">https://blog.kronis.dev/articles/using-ubuntu-as-the-base-fo...</a><p>Drone CI makes this easy to have happen in the background, as long as I don't update across major versions, or Maven decides to release a new version and remove their old version .tar.gz archives from the downloads site for some reason, breaking my builds and making me update the URL: <a href="https://docs.drone.io/cron/" rel="nofollow">https://docs.drone.io/cron/</a><p>Some images like databases etc. I just proxy to my Nexus instance, version upgrades are relatively painless most of the time, at least as long as I've set up the persistent data directories correctly.<p>> do load balancing? built-in load balancer?<p>This is a bit more tricky. I use Apache2 with mod_md to get Let's Encrypt certificates and Docker Swarm networking for directing the incoming traffic across the services: <a href="https://blog.kronis.dev/tutorials/how-and-why-to-use-apache-httpd-in-2022" rel="nofollow">https://blog.kronis.dev/tutorials/how-and-why-to-use-apache-...</a><p>Some might prefer Caddy, which is another great web server with automatic HTTPS: <a href="https://caddyserver.com/" rel="nofollow">https://caddyserver.com/</a> but the Apache modules do pretty much everything I need and the performance has never actually been too bad for my needs. Up until now, applications themselves have always been the bottleneck, actually working on a blog post about comparing some web servers in real world circumstances.<p>However, making things a bit more failure resilient might involve just paying Hetzner (in this case) to give you a load balancer: <a href="https://www.hetzner.com/cloud/load-balancer" rel="nofollow">https://www.hetzner.com/cloud/load-balancer</a> which will make everything less painless once you need to scale.<p>Why? Because doing round robin DNS with the ACME certificate directory accessible and synchronized across multiple servers is a nuisance, although servers like Caddy attempt to get this working: <a href="https://caddyserver.com/docs/automatic-https#storage" rel="nofollow">https://caddyserver.com/docs/automatic-https#storage</a> You could also get DNS-01 challenges working, but that needs even more work and integration with setting up TXT records. Even if you have multiple servers for resiliency, not all clients would try all of the IP addresses if one of the servers is down, although browsers should: <a href="https://webmasters.stackexchange.com/a/12704" rel="nofollow">https://webmasters.stackexchange.com/a/12704</a><p>So if you care about HTTPS certificates and want to do it yourself with multiple servers having the same hostname, you'll either need to get DNS-01 working, do some messing around with shared directories (which may or may not actually work), or will just need to get a regular commercial cert that you'd manually propagate to all of the web servers.<p>From there on out it should be a regular reverse proxy setup, in my case Docker Swarm takes care of the service discovery (hostnames that I can access).<p>> handle scaling? Terraform?<p>None, I manually provision how many nodes I need, mostly because I'm too broke to hand over my wallet to automation.<p>They have an API that you or someone else could probably hook up: <a href="https://docs.hetzner.cloud/" rel="nofollow">https://docs.hetzner.cloud/</a><p>> automate backups? ex: databases, storage. Do you use provided backups and snapshots?<p>I use bind mounts for all of my containers for persistent storage, so the data is accessible on the host directly.<p>Then I use something like BackupPC to connect to those servers (SSH/rsync) and pull data to my own backup node, which then compresses and deduplicates the data: <a href="https://backuppc.github.io/backuppc/" rel="nofollow">https://backuppc.github.io/backuppc/</a><p>It was a pain to setup, but it works really well and has saved my hide dozens of times. Some might enjoy Bacula more: <a href="https://www.bacula.org/" rel="nofollow">https://www.bacula.org/</a><p>> maintain security? built-in firewall and DDoS protection?<p>I personally use Apache2 with ModSecurity and the OWASP ruleset, to act as a lightweight WAF: <a href="https://owasp.org/www-project-modsecurity-core-rule-set/" rel="nofollow">https://owasp.org/www-project-modsecurity-core-rule-set/</a><p>You might want to just cave in and go with Cloudflare for the most part, though: <a href="https://www.cloudflare.com/waf/" rel="nofollow">https://www.cloudflare.com/waf/</a>