From 967e0dd98abca6002d8e08b58737ee7378a0e329 Mon Sep 17 00:00:00 2001 From: David Dosoudil <69464125+phantomski77@users.noreply.github.com> Date: Thu, 11 Mar 2021 21:59:26 +0000 Subject: [PATCH] Update README.md Secrets need both global and local per-service declaration, otherwise fails as "not found". Local configuration added for both app and db. --- docs/advanced-config/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/advanced-config/README.md b/docs/advanced-config/README.md index ebd9734b..2c6cb7ce 100644 --- a/docs/advanced-config/README.md +++ b/docs/advanced-config/README.md @@ -92,6 +92,8 @@ services: volumes: - ./data:/data - ./letsencrypt:/etc/letsencrypt + secrets: + - MYSQL_PWD depends_on: - db db: @@ -106,6 +108,9 @@ services: MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD volumes: - ./data/mysql:/var/lib/mysql + secrets: + - DB_ROOT_PWD + - MYSQL_PWD ```