removed mode from secrets block, expanded docker-compose entry

Docker Compose's version of Secrets does not yet support ``uid`, ``guid``, or ``mode``.
pull/1777/head
Wm Salt Hale 2020-12-23 14:18:08 -08:00 committed by GitHub
parent 3f6febc0d1
commit df15da73c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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: