▲ | nkantar 5 days ago | |
Author—though not OP—here. I’ll try to broadly address the questions, which are all fair. Broadly speaking, I explicitly wanted to stay in the Coolify world. Coolify is a self-hostable PaaS platform—though I use the Cloud service, as I mentioned—and I really like the abstraction it provides. I haven’t had to SSH into my server for anything since I set it up—I just add repos through the web UI and things deploy and show up in my browser. Yes, static sites certainly could—and arguably even should—be done way simpler than this. But I have other things I want to deploy on the same infrastructure, things that aren’t static sites, and for which containers make a whole lot more sense. Simplicity can be “each thing is simple in isolation”, but it can also be “all things are consistent with each other”, and in this case I chose the latter. If this standardization on this kind of abstraction weren’t a priority, this would indeed be a pretty inefficient way of doing this. In fact, I arrived at my current setup by doing what you suggested—setting up a server without containers, building sites directly on it, and serving them from a single reverse proxy instance—and the amount of automation I found myself writing was a bit tedious. The final nail in the coffin for that approach was realizing I’d have to solve web apps with multiple processes in some other way regardless. | ||
▲ | divbzero 5 days ago | parent | next [-] | |
> I explicitly wanted to stay in the Coolify world. I too was skeptical of the motivation until reading this. Given that Coolify requirement, your solution (build static files in one container, deploy with Caddy in another) seems quite sensible. | ||
▲ | john-tells-all 4 days ago | parent | prev [-] | |
(Hi, Nik!) So what you're saying is that "Static sites with Python, uv, Caddy, and Docker" wasn't the overall goal. You want to stay in Coolify world, where most things are a container image. It just so happens that a container can be just a statically-served site, and this is a pattern to do it. By treating everything as a container, you get a lot of simplicity and flexibility. Docker etc is overkill for the static case, but useful for the general case. |