You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration.md
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1701,8 +1701,11 @@ Display the status of your Docker containers along with an icon and an optional
1701
1701
```yaml
1702
1702
- type: docker-containers
1703
1703
hide-by-default: false
1704
+
readable-names: false
1704
1705
```
1705
1706
1707
+
The `readable-names` will try to auto format your container names by capitalizing the first letter and converting `-` and `_` characters to spaces.
1708
+
1706
1709
> [!NOTE]
1707
1710
>
1708
1711
> The widget requires access to `docker.sock`. If you're running Glance inside a container, this can be done by mounting the socket as a volume:
@@ -1727,6 +1730,21 @@ Configuration of the containers is done via labels applied to each container:
1727
1730
glance.description: Movies & shows
1728
1731
```
1729
1732
1733
+
Configuration of the containers can also be overridden using `glance.yml`. Containers are specified by their container names, these will take preference over any docker labels that are set:
1734
+
1735
+
```yaml
1736
+
- type: docker-containers
1737
+
hide-by-default: false
1738
+
readable-names: false
1739
+
containers: # Alternative to using docker labels
1740
+
container_name_1: # This is the actual container name
1741
+
title: "Test Container Name"
1742
+
description: "test-description"
1743
+
url: "127.0.0.1:3011/test"
1744
+
icon: "si:jellyfin"
1745
+
hide: false
1746
+
```
1747
+
1730
1748
For services with multiple containers you can specify a `glance.id` on the "main" container and `glance.parent` on each "child" container:
0 commit comments