MariaDB compartida (mariadb)
MariaDB compartida en una caja Self Host Wizard: la pieza mariadb, solo interna, ingreso none, límite de memoria 331 MB.
De un vistazo
| Dato | Valor |
|---|---|
| Dirección | no está en la web (solo la usan las piezas que la necesitan) |
| Ingreso | none: sin ingreso de la oficina adelante |
| Límite de memoria | 331 MB (ram_mb: pico medido × 1,3) |
| Base de datos | ninguna compartida: guarda sus datos en THX_DATA |
| Necesita | nada |
| La necesitan | bookstack, easyappointments, espocrm, freescout |
| Contenedores | mariadb |
Imagen: mariadb | mariadb:11.8.9-noble@sha256:e1d5495f445654134f226f55a41ce0da227116f6f27f283101f405c794d841fc |
| Licencia (según el README) | GPL-2.0-only |
| Proyecto original (según el README) | https://mariadb.org |
Cómo activarla
thx enable agrega mariadb y todo lo que necesita al estado de la caja; después thx apply la instala. Las apps se aplican recién cuando site_domain está definido.
sudo thx enable mariadb
sudo thx apply
Notas técnicas (pieces/mariadb/README.md)
Las notas técnicas de cada pieza están en inglés, tal como están en el repositorio.
MariaDB 11.8.9 (LTS), GPL-2.0-only. Image mariadb:11.8.9-noble (Docker Library),
pinned by index digest sha256:e1d5495f…41fc; the index has linux/arm64
(docker buildx imagetools inspect, 2026-11-24). Upstream image, unmodified.
How it is wired
- Internal only:
mariadb:3306on the thx network; no host port, no web host. - For each enabled piece with
db = "mariadb",thx applycreates database and user<name>(-→_) with the piece's generated password (SQL on stdin, passwords never in argv); the check logs in as that user. The root password stays in/etc/thx/secrets/mariadb/. - Small:
innodb_buffer_pool_size=128M, performance schema off,max_connections=60,MARIADB_AUTO_UPGRADE=1(minor upgrades runmariadb-upgradeon start).
Measured
RAM: measured peak 254 MiB (anon + shmem + kernel from memory.stat, sampled through the whole check.sh docker stage including a 10-client database load; 338 MiB with page cache) × 1.3 = ram_mb 331, mem_limit 331m. Measured 2026-11-25, e2e run 6.
Known gaps
- No backups here (the backup lane's job).