-
-
Notifications
You must be signed in to change notification settings - Fork 962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Docker labels for services #61
Comments
It's a good idea and has been suggested before, it'll just take some careful planning to make sure it's reliable and flexible enough. |
So I've made some progress on this, and it seems to be working :) As an example, here are the labels for my Emby docker compose entry: emby:
labels:
- traefik.enable=true
- traefik.http.routers.emby.rule=Host(`emby.media.home`)
- traefik.http.routers.emby.entrypoints=web
- homepage.group=Media
- homepage.name=Emby
- homepage.icon=emby.png
- homepage.href=http://emby.media.home
- homepage.description=Media server
- homepage.widget.type=emby
- homepage.widget.url=http://emby.media.home
- homepage.widget.key=myembyapikeywashere This essentially defines a - Media:
- Emby:
icon: emby.png
href:
description: Media server
server: phelpsrv-b
container: emby
widget:
type: emby
url: http://emby.media.home
key: myembyapikeywashere But... and theres always a but. This needs to work alongside entries in Adding support for configured positions could be done, but would require even more refactoring, so if it is done, it'll be done at a later time. |
Hell yea! Great job! Tbf, at least for me, but I know I don't speak for the larger userbase, the automated ordering (maybe a way to do it alphabetically would be the simplest choice, rather than some custom solution), can certainly be done at a later date, and wouldn't/couldn't be considered critical by any means. |
Just pushed the changes, I wanted to do a You can check out the commit here: d66326b |
I noticed that i don't know what i am doing wrong with Portainer API. if i enable Portainer API label, I'm getting NextJS error when checked from console. labels:
- "homepage.group=Admin"
- "homepage.name=portainer"
- "homepage.icon=portainer.png"
- "homepage.href=http://192.168.0.151:9000"
- "homepage.description=Docker management"
- "homepage.widget.type=portainer"
- "homepage.widget.url=http://192.168.0.151:9000"
- "homepage.widget.key=API_KEY"
EDIT: Got portainer to work. had to pass |
Yeah, you'll need to pull the |
Yeah i got it working. |
Fantastic, hopefully this will be in the |
This has been released now :) |
@benphelps This is great!! Still missing documentation though on https://gethomepage.dev correct? I only accidentally stumbled over this feature. |
https://gethomepage.dev/en/configs/docker/#automatic-service-discovery |
Is there a way to automatically get the IP from the docker API and define the port manually in the config? That would be great for internal services. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
Would it be possible to use compose file labels to define the Docker services side of things?
E.g.
URL should be optional, as the URL should be able to be grabbed from the Docker socket link.
I have a similar setup with the Flame dashboard, which gives the following (with Traefik integration):
This would reduce the amount of dependency on external config files, and allow for auto-updating of services when they are added/remove/modified.
The text was updated successfully, but these errors were encountered: