From 238b8d16b7be122056e1ba5094b27e9b78672e42 Mon Sep 17 00:00:00 2001 From: Wm Salt Hale Date: Wed, 23 Dec 2020 14:18:08 -0800 Subject: [PATCH] removed mode from secrets block, expanded docker-compose entry Docker Compose's version of Secrets does not yet support ``uid`, ``guid``, or ``mode``. --- docs/docker.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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: