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
+11-12Lines changed: 11 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1701,11 +1701,8 @@ 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
1705
1704
```
1706
1705
1707
-
The `readable-names` will try to auto format your container names by capitalizing the first letter and converting `-` and `_` characters to spaces.
1708
-
1709
1706
> [!NOTE]
1710
1707
>
1711
1708
> 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:
@@ -1730,18 +1727,16 @@ Configuration of the containers is done via labels applied to each container:
1730
1727
glance.description: Movies & shows
1731
1728
```
1732
1729
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:
1730
+
Alternatively, you can also define the values within your `glance.yml` via the `containers` property, where the key is the container name and each value is the same as the labels but without the "glance." prefix:
1734
1731
1735
1732
```yaml
1736
1733
- 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"
1734
+
containers:
1735
+
container_name_1:
1736
+
title: Container Name
1737
+
description: Description of the container
1738
+
url: https://container.domain.com
1739
+
icon: si:container-icon
1745
1740
hide: false
1746
1741
```
1747
1742
@@ -1796,11 +1791,15 @@ If any of the child containers are down, their status will propagate up to the p
1796
1791
| Name | Type | Required | Default |
1797
1792
| ---- | ---- | -------- | ------- |
1798
1793
| hide-by-default | boolean | no | false |
1794
+
| format-container-names | boolean | no | false |
1799
1795
| sock-path | string | no | /var/run/docker.sock |
1800
1796
1801
1797
##### `hide-by-default`
1802
1798
Whether to hide the containers by default. If set to `true` you'll have to manually add a `glance.hide: false` label to each container you want to display. By default all containers will be shown and if you want to hide a specific container you can add a `glance.hide: true` label.
1803
1799
1800
+
##### `format-container-names`
1801
+
When set to `true`, automatically converts container names such as `container_name_1` into `Container Name 1`.
0 commit comments