Skip to content

Knowledge Base ​

The knowledge base is how HomeGantry names a container without any labels. It is one small YAML file per service in knowledge-base/. The files are validated and converted to JSON at build time, so the running server needs no YAML parser.

Add a service to the knowledge base ​

  1. Copy the template to a new file named after the service:

    bash
    cp knowledge-base/_template.yaml knowledge-base/my-service.yaml
  2. Edit it (see the format below). Use public image names only.

  3. Run the check:

    bash
    npm run kb:check
  4. Open a pull request.

Not comfortable with a pull request? Open a Missing service issue with the image name, the homepage and, if there is one, the icon.

Format ​

yaml
name: Jellyfin
description: The free software media system
icon: jellyfin
category: Media
defaultPort: 8096
patterns:
  - jellyfin/jellyfin
  - linuxserver/jellyfin
aliases:
  - jellyfin
FieldRequiredDescription
nameyesDisplay name
descriptionyesOne line about the service
categoryyesReuse an existing category where possible
iconnoSlug from dashboard-icons; without it, a letter avatar
defaultPortnoDefault web UI port
patterns*Image repositories, without tag or digest
aliases*Compose service / container names. Case, -, _ and . are ignored
traefik*Traefik router/service names, for services that do not run in Docker (Proxmox, a NAS, a router)
infrastructurenotrue hides the service by default (databases, caches, agents, socket proxies)

* An entry needs at least one of patterns, aliases or traefik.

npm run kb:check fails on an invalid entry, an unknown icon slug, or a pattern, alias or Traefik name that another entry already uses. CI runs the same check.

Matching rules ​

Images ​

A pattern names a whole repository. Registry, tag and digest are handled for you:

PatternMatchesDoes not match
redisredis:7, docker.io/library/redis, bitnami/redisredis-exporter, example/redis-db
linuxserver/sonarrlscr.io/linuxserver/sonarr:4, ghcr.io/linuxserver/sonarrexample/sonarr
ghcr.io/example/appghcr.io/example/app:1quay.io/example/app, example/app
example/app-*example/app-web, ghcr.io/example/app-worker:1example/app, example/app/nested
  • Without a registry, a pattern matches on any registry and below any namespace or mirror prefix.
  • With a registry, it matches only that registry.
  • * is an explicit glob and stays within one path segment.
  • If several entries match, the most specific pattern wins: a literal before a glob, then the longest.

Order of precedence ​

Each column is tried from left to right; the first source with a value wins. The rules below the table say when a source is skipped.

Field12345
NameUI overridehomegantry.namehomepage.nameKnowledge baseContainer name
IconUI overridehomegantry.iconhomepage.iconKnowledge baseLetter avatar
CategoryUI overridehomegantry.categoryhomepage.groupKnowledge baseOther
DescriptionUI overridehomegantry.descriptionhomepage.descriptionKnowledge base(empty)
URLUI overridehomegantry.urlhomepage.hrefTraefikHOMEGANTRY_HOST:port, else # link
  • A name label means you named the service yourself. With homegantry.name or homepage.name, the knowledge base is skipped for that container: its icon, category and description come only from labels and overrides, and an infrastructure entry is not hidden.
  • homegantry.name also ignores the homepage.* labels for name, icon, category and description (homepage.href still counts for the URL). Without homegantry.name, each homegantry.* label beats its homepage.* counterpart.
  • A description label needs a companion. homegantry.description only counts when the container also has homegantry.name, homegantry.icon or homegantry.category; homepage.description only counts with homepage.name, homepage.icon or homepage.group. A description label on its own is ignored.
  • homepage.* labels need HOMEGANTRY_HOMEPAGE_COMPAT=true (the default).
  • Traefik means the Traefik API when it is configured, then the router rules in the container's labels. Without HOMEGANTRY_HOST, the port link uses localhost.

A knowledge-base entry is looked up by compose service name, then container name, then image. Services without a container are looked up by Traefik router name, then service name.

Coverage report ​

Editors see N of M containers recognised and the list of unrecognised images in the Settings drawer. The same data is available from GET /api/kb/coverage, which needs edit rights and returns image repositories only:

json
{ "total": 12, "recognised": 11, "unrecognised": ["example/custom-app"] }

Icon metadata ​

The check compares slugs with a pinned copy of the dashboard-icons file list in knowledge-base/_meta/dashboard-icons.json, so tests never call the network. To move the pin to the latest upstream commit (or a specific one), run:

bash
npm run kb:refresh-icons           # latest main
npm run kb:refresh-icons <commit>  # a specific commit

Then run npm run kb:check and commit the updated file.

Released under the MIT License.