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
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1834,6 +1834,19 @@ Configuration of the containers is done via labels applied to each container:
1834
1834
glance.description: Movies & shows
1835
1835
```
1836
1836
1837
+
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:
1838
+
1839
+
```yaml
1840
+
- type: docker-containers
1841
+
containers:
1842
+
container_name_1:
1843
+
title: Container Name
1844
+
description: Description of the container
1845
+
url: https://container.domain.com
1846
+
icon: si:container-icon
1847
+
hide: false
1848
+
```
1849
+
1837
1850
For services with multiple containers you can specify a `glance.id` on the "main" container and `glance.parent` on each "child" container:
1838
1851
1839
1852
<details>
@@ -1885,13 +1898,17 @@ If any of the child containers are down, their status will propagate up to the p
1885
1898
| Name | Type | Required | Default |
1886
1899
| ---- | ---- | -------- | ------- |
1887
1900
| hide-by-default | boolean | no | false |
1901
+
| format-container-names | boolean | no | false |
1888
1902
| sock-path | string | no | /var/run/docker.sock |
1889
1903
| category | string | no | |
1890
1904
| running-only | boolean | no | false |
1891
1905
1892
1906
##### `hide-by-default`
1893
1907
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.
1894
1908
1909
+
##### `format-container-names`
1910
+
When set to `true`, automatically converts container names such as `container_name_1` into `Container Name 1`.
1911
+
1895
1912
##### `sock-path`
1896
1913
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).
0 commit comments