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.
This commit is contained in:
David Dosoudil 2021-03-11 21:59:26 +00:00 committed by GitHub
parent b7b808d98d
commit 967e0dd98a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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