summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorWm Salt Hale <salt@altsalt.net>2020-12-23 14:18:08 -0800
committerGitHub <noreply@github.com>2020-12-23 14:18:08 -0800
commitdf15da73c8eaaff9e5b4554a78544d49b7df3b42 (patch)
tree2809ed41ccd5b5ab318881df94dbd123c487c4ba /docs
parent3f6febc0d1afbfff8290a1e6f74261b56047e716 (diff)
removed mode from secrets block, expanded docker-compose entry
Docker Compose's version of Secrets does not yet support ``uid`, ``guid``, or ``mode``.
Diffstat (limited to 'docs')
-rw-r--r--docs/docker.rst9
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/docker.rst b/docs/docker.rst
index 036ebbc9..c91cbf28 100644
--- a/docs/docker.rst
+++ b/docs/docker.rst
@@ -115,13 +115,20 @@ You will then need to copy the password file to your host machine:
and make it visible to your container by adding it to ``docker-compose.yml`` as a ``secret``:
.. code-block:: yaml
+ version: '3'
+
services:
glances:
image: nicolargo/glances:latest
+ restart: always
+ environment:
+ - GLANCES_OPT="-w --password"
+ volumes:
+ - /var/run/docker.sock:/var/run/docker.sock:ro
+ pid: host
secrets:
- source: glances_password
target: /root/.config/glances/glances.pwd
- mode: '0440'
secrets:
glances_password: