Open MissingDLL opened 1 year ago
This is the only thing that stops me from replacing homepage by homarr. It's such a great feature. I use labels to configure Traefic, Whatsupdocker and homepage. I like homarrs integration in arr services and would love to use it, but without this feature i am not going to use homarr.
I guess we could do that, we planned to do it without tags at all. But isn’t that adding a lot of configuration to your docker file for not a lot of added benefits ?
I guess we could do that, we planned to do it without tags at all. But isn’t that adding a lot of configuration to your docker file for not a lot of added benefits ?
That is what docker compose is for. You have configurations in it and only data in volumes. Infrastructure as Code (IaC) GREAT way to go. In fact when i heard homarr had docker integration i thought about this first and i was surprised when i found out you still had to manually configure things just like in dashboards without docker integration.
EDIT: I also forgot to mention another good feature, since you are already mounting docker socket it could also have auto discovery just like homepage does.
Has someone already started working on this topic. I guess i could help with setting this up.
But isn’t that adding a lot of configuration to your docker file for not a lot of added benefits ?
You can keep it separate as a complimentary yaml
if it were to add too much noise. Main benefit is that configuration is bundled with the container service, which some prefer for service discovery elsewhere (Traefik / CDP, AutoKuma, etc).
It makes more sense if the containers are not config and forget, any changes for integrated services is centralized to each service and you could say it's more portable / convenient to share a service that way where integrations get auto configured. Then if the service is ever removed/replaced those integrations don't have additional config to remember to go modify.
Tends to be more verbose, so there's a trade-off but it's nice to have the flexibility.
You can see a brief example here: https://github.com/lucaslorentz/caddy-docker-proxy/issues/652#issuecomment-2320412566
A separate compose.yaml
has some services with labels for routing the reverse-proxy (Caddy) to the containers, and other labels for Homepage to handle navigation.
compose.yaml
project with different services, adding the metadata labels and then those new services will become routable via Caddy with certs and easy navigation via a dashboard like Homepage.compose.yaml
to someone else running the separate compose.yaml
for reverse-proxy + homepage and they'll get to try those new services automatically configured for a dashboard instead of any extra manual work.I haven't looked into Homarr much, so not sure if it offers anything as simple for modular/ephemeral configuration perks like could be done with the labels approach.
For reference without visiting the link, here are the two compose.yaml
that show off the feature:
FWIW, with compose.yaml
at least, labels can easily be given multi-line content like a config file, similar to how is shown in the configs
sections with content: |
.
I've not seen that used anywhere though, so the per key approach like shown above may still be required for broader compatibility.
Description
It would be nice to have homarr to perform a automatic service discovery for Docker-Containers. My sugesstion would be to add docker labels to the container and use these to fill the dashboard. Homepage does this for example in the following way: `labels:
Priority
Medium (Would be very useful)