Do you mean declaring the volumes? What's so hard about that? There's a massive benefit when everything is homogenous. I can look at a docker-compose.yml file and instantly know where all the important data is. I can also copy volumes to a new host with a one-liner:
sudo docker run \
--rm \
--log-driver none \
--volume myservice_data:/data \
alpine \
tar -cf - -C /data . \
| ssh -o "StrictHostKeyChecking no" [email protected] \
'sudo docker run --rm -i \
-v myservice_data:/data \
alpine tar -C /data -xpvf -'
For development, I self host Portainer, Caddy, Authelia, Cloudflare Tunnel, Gitea, Drone, MinIO, Nexus, Bookstack, Nextcloud, and ArchiveBox. I barely think about any of them. I pin to a major version and schedule nightly updates using SystemD. Everything is templated, so after I set up a new container it's as simple as: systemctl enable --now [email protected]
It's a very pragmatic solution if your needs are satisfied with vertical scaling because everything can go into a single VM that's plugged in to a homogenous VM backup system. The only thing that's a little bit complex about mine is that I run MinIO in a separate VM that doesn't get backed up because I use it as cache storage for APT, Docker Hub, NPM, etc. proxies in Nexus.Docker can be frustrating while you're learning it, but everything's like that and once you get proficient with it you'll never want to go back to the old way of doing things. Docker is the packaging format that won (for servers) IMO.
My setup is portainer for container management on top of docker-ce, running on debian.
I realize that homelab goes a bit beyond localhost, but we all start somewhere.
It's like writing a page on how to make bread at home but then spending most of the words on how to build an transient extra-oven outside with special parts instead of just using your oven and talking about the actual recipe steps.
It's not required, but, once you have a handle on it, you get to save a lot of time and hassle. For example, I just checked my old docs for installing and updating Nextcloud. It's 17 printed pages. My new docs are:
docker compose pull && docker compose up -d && docker logs -f nextcloud
Personally, I run that nightly because, like someone said in another comment, "so what if your homelab is down for a day." For me having a day of downtime wouldn't be the end of the world, so everything's homogenous and auto-updated. I only touch it when I need to update to new major versions.In my experience I spend less time fixing issues related to containers than I used to maintaining everything by hand.
Updating & deploying is simple too. I can `git push` some changes from any of my computers, and then ssh (which is trivial to set up w/avahi using NixOS) into the server and `git pull && nixos-rebuild switch`.
It is, but as just any another tool it has it uses, as any other tool it has some footguns:
There are no "production deployments" at home. You just do what you want. If it's down for a day that's fine. Putting something in a transient docker container and then bending over backwards to enable file persistence is just... wrong. And it'll lead to lots of extra work for no reason.