Enhancement: Add service discovery labels support for multiple homepage instances (#2340)

This commit is contained in:
Timo 2023-11-21 04:27:19 +01:00 committed by GitHub
parent 5bf6f30e2b
commit 6d21ea9ba3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 37 additions and 6 deletions

View file

@ -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: