Add the mysql need: its own database on the Core's MariaDB

needs = ["mysql"] (coreapp new --mysql) makes a user and database
coreapp_<name> on pdnsmysql, with the same DB_* settings as postgres
(so an app has one or the other). Root's password is read inside the
container, so it stays out of installapp's set -x log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 15:15:23 -07:00
co-authored by Claude Opus 5.5
parent 6ab1db839b
commit 8ef2112e3c
12 changed files with 93 additions and 14 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ keep its values and add new ones):
| `IMAGE_VERSION` | The version that's installed |
`needs = ["postgres"]` adds `DB_HOST`, `DB_PORT`, `DB_NAME`, `DB_USER` and
`DB_PASSWORD`; `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
`DB_PASSWORD` (`needs = ["mysql"]` the same, for MariaDB); `needs = ["sso"]` adds `OIDC_ISSUER`, `OIDC_CLIENT_ID` and
`OIDC_CLIENT_SECRET`; `needs = ["email"]` adds `SMTP_HOST`, `SMTP_PORT`
(587), `SMTP_SECURITY` (`starttls`), `SMTP_USER`, `SMTP_PASSWORD` and
`SMTP_FROM` (`{{NAME}}@<domain>`): the app's own account on the Core's mail
+1 -1
View File
@@ -18,6 +18,6 @@ version = "0.1.0"
port = 8080
health = "/"
# What it needs from the Core: "postgres" (its own database), "sso"
# What it needs from the Core: "postgres" or "mysql" (its own database), "sso"
# (sign-in with Core accounts through Authelia), "email" (sending mail)
needs = []