I have a BananaPi R4 with 4GB ram and since I have no other SBC plan to use it as a container host for Grafana such to monitor my system beyond LuCi and beyond the router.
The podman setup itself is done. It is working. Separate subnet and DNS and such. Storage on the NVMe.
What I'm looking for now is how to setup them running automatically. I saw the wiki about this, but having it in rc.local looks weird.
I debated with GitHub Copilot about it and it suggested using procd and having a script in /etc/init.d/containers that looks something like this:
The web searches and forum search didn't return anyone describing their setup. I guess it makes sense, OpenWrt is not really meant to be a container host.
But if there is someone here reading this with a running setup, care to share it?
How do you manage your containers?
Do you use an init.d script for all of them combined or each service their own script?
Or even docker compose? (Which doesn't come included with podman and I'd rather not put a whole python installation in my image)
This is what I came up with. Feedback welcome.
Now uses UCI /etc/config/containers to determine the containers to start. Each running as their own instance inside procd.
It sounds quite powerful as a solution, not spoiling resouces for a supervisor like proxmox for example.
I wonder what are the most relevant differences, as I'm not educated on the subject, but I'm looking at this thread with much interest.