mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 04:38:46 +00:00
Enhancement: Add service discovery labels support for multiple homepage instances (#2340)
This commit is contained in:
parent
5bf6f30e2b
commit
6d21ea9ba3
3 changed files with 37 additions and 6 deletions
|
@ -201,6 +201,22 @@ In order to detect every service within the Docker swarm it is necessary that se
|
|||
...
|
||||
```
|
||||
|
||||
## Multiple Homepage Instances
|
||||
|
||||
The optional field `instanceName` can be configured in [settings.md](settings.md#instance-name) to differentiate between multiple homepage instances.
|
||||
|
||||
To limit a label to an instance, insert `.instance.{{instanceName}}` after the `homepage` prefix.
|
||||
|
||||
```yaml
|
||||
labels:
|
||||
- homepage.group=Media
|
||||
- homepage.name=Emby
|
||||
- homepage.icon=emby.png
|
||||
- homepage.instance.internal.href=http://emby.lan/
|
||||
- homepage.instance.public.href=https://emby.mydomain.com/
|
||||
- homepage.description=Media server
|
||||
```
|
||||
|
||||
## Ordering
|
||||
|
||||
As of v0.6.4 discovered services can include an optional `weight` field to determine sorting such that:
|
||||
|
|
|
@ -404,6 +404,16 @@ or per-service (`services.yaml`) with:
|
|||
|
||||
If you have both set, the per-service settings take precedence.
|
||||
|
||||
## Instance Name
|
||||
|
||||
Name used by automatic docker service discovery to differentiate between multiple homepage instances.
|
||||
|
||||
For example:
|
||||
|
||||
```yaml
|
||||
instanceName: public
|
||||
```
|
||||
|
||||
## Hide Widget Error Messages
|
||||
|
||||
Hide the visible API error messages either globally in `settings.yaml`:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue