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
+56-1Lines changed: 56 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1886,12 +1886,66 @@ If any of the child containers are down, their status will propagate up to the p
1886
1886
| ---- | ---- | -------- | ------- |
1887
1887
| hide-by-default | boolean | no | false |
1888
1888
| sock-path | string | no | /var/run/docker.sock |
1889
+
| category | string | no | |
1890
+
| running-only | boolean | no | false |
1889
1891
1890
1892
##### `hide-by-default`
1891
1893
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.
1892
1894
1893
1895
##### `sock-path`
1894
-
The path to the Docker socket.
1896
+
The path to the Docker socket. This can also be a [remote socket](https://docs.docker.com/engine/daemon/remote-access/) or proxied socket using something like [docker-socket-proxy](https://github.com/Tecnativa/docker-socket-proxy).
1897
+
1898
+
###### `category`
1899
+
Filter to only the containers which have this category specified via the `glance.category` label. Useful if you want to have multiple containers widgets, each showing a different set of containers.
1900
+
1901
+
<details>
1902
+
<summary>View example</summary>
1903
+
<br>
1904
+
1905
+
1906
+
```yaml
1907
+
services:
1908
+
jellyfin:
1909
+
image: jellyfin/jellyfin:latest
1910
+
labels:
1911
+
glance.name: Jellyfin
1912
+
glance.icon: si:jellyfin
1913
+
glance.url: https://jellyfin.domain.com
1914
+
glance.category: media
1915
+
1916
+
gitea:
1917
+
image: gitea/gitea:latest
1918
+
labels:
1919
+
glance.name: Gitea
1920
+
glance.icon: si:gitea
1921
+
glance.url: https://gitea.domain.com
1922
+
glance.category: dev-tools
1923
+
1924
+
vaultwarden:
1925
+
image: vaultwarden/server:latest
1926
+
labels:
1927
+
glance.name: Vaultwarden
1928
+
glance.icon: si:vaultwarden
1929
+
glance.url: https://vaultwarden.domain.com
1930
+
glance.category: dev-tools
1931
+
```
1932
+
1933
+
Then you can use the `category` property to filter the containers:
1934
+
1935
+
```yaml
1936
+
- type: docker-containers
1937
+
title: Dev tool containers
1938
+
category: dev-tools
1939
+
1940
+
- type: docker-containers
1941
+
title: Media containers
1942
+
category: media
1943
+
```
1944
+
1945
+
</details>
1946
+
1947
+
##### `running-only`
1948
+
Whether to only show running containers. If set to `true` only containers that are currently running will be displayed. If set to `false` all containers will be displayed regardless of their state.
1895
1949
1896
1950
#### Labels
1897
1951
| Name | Description |
@@ -1904,6 +1958,7 @@ The path to the Docker socket.
1904
1958
| glance.hide | Whether to hide the container. If set to `true` the container will not be displayed. Defaults to `false`. |
1905
1959
| glance.id | The custom ID of the container. Used to group containers under a single parent. |
1906
1960
| glance.parent | The ID of the parent container. Used to group containers under a single parent. |
1961
+
| glance.category | The category of the container. Used to filter containers by category. |
1907
1962
1908
1963
### DNS Stats
1909
1964
Display statistics from a self-hosted ad-blocking DNS resolver such as AdGuard Home, Pi-hole, or Technitium.
0 commit comments