Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So if you know Docker, you shouldn't know how to do things without a container?



Nobody said that.

But yea, when using Docker already, why not? It's quick and easy compared to all the alternatives.


It's not easier than pushing a static site up to a CDN. Let someone else do the work until you're using actual compute.

EDIT: Others are already expressing my point, that this is overkill for a blog.


That's entirely different than what this thread is about. Many different ways to build and host a site, although many would find it simpler to just run Ghost or Wordpress and have the GUI for their posts.

You can still use a CDN in front of a very tiny VM. Some new blog engines even support running on serverless/FaaS platforms for every easier deployments, and once FaaS evolves into just running Docker containers then the circle will complete and we'll have the best of everything.


Why add an additional layer of abstraction?

Really, you don't even need Ansible.

Just ssh into the box, apt install nginx, run the Let's Encrypt script and install Ghost.


The docker-machine command creates the droplet for you, and then docker-compose runs everything for you. It's two commands and one config. It's repeatable, automated, fast, simple, and complete.

But, sure, you could do it in a more complicated way, or a more manual and time consuming way that isn't documented or automated. I think that's called the "job security" method.


How many static blogs are you deploying?

Shouldn't we also be using k8s to orchestrate all the blogs?


Yes, k8s would make it even easier, if you had access to a hosted k8s cluster. But that isn't what DigitalOcean provides.



It's less about "why would I use ansible?" and more about "why wouldn't I use docker?"

That heavily depends on if this is a "learn new tech" thing or not. Some people view setting up a blog as a challenge to solve, and some people just want a blog up and running so they can write. And if this does it in a simple to follow guide that is reliable, the tech behind it doesn't really matter.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: