[Feature Request] Allow to run different instances of homepage with docker service discovery match #1261
Replies: 4 comments 1 reply
-
I think I have a (potentially partial) solution to this, I'll make a PR in a bit |
Beta Was this translation helpful? Give feedback.
-
@ArgentumCation Did you had any chance to come with something ? :) Cheers |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically closed due to lack of community interest. |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details. |
Beta Was this translation helpful? Give feedback.
-
Description
It is not possible to run more than one homepage instance with docker service discovery enabled. If you do so, all instance would exactly show the same content, because they all discover the same services in docker. A possible feature would be to allow to check container label to see it if would be accepted as discovered service or not, a bit like Traefik already allows to do with the
group
option on container labels. Having the possibility to use a regex would be a must, but a simple string would resolve 99% usecase.Example:
hp.home.com
=> Homepage display only containers having a label that match the regex "home-."
hp.work.com
=> Homepage display only containers having a label that match the regex "work-."
Other
I'm not a js script guy at all, but adding a condition in this block would allow to filter out undesired containers:
https://github.com/benphelps/homepage/blob/f6b1304e22f8c742db77c8387bc04c228b89e5ed/src/utils/config/service-helpers.js#L45
Beta Was this translation helpful? Give feedback.
All reactions