chore: store database and media on host bind mounts
CD — Déploiement / deploy (push) Failing after 1s

Move MariaDB and media data out of /var/lib/docker onto the host disk via CLOUD_DB_DIR and CLOUD_MEDIA_DIR (default ../db, ../media). Only the frontend build output remains a named volume.
This commit is contained in:
2026-10-16 10:47:12 +02:00
parent 37e0b542ae
commit a22f18d860
5 changed files with 29 additions and 10 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ app-build (publish.sh, terminé avant nginx)
- `migrate` monte `./backend/cloud/migrations:/migrations:ro`.
- `api` refuse de démarrer si une migration appliquée a été modifiée (dérive de
checksum). `onReady` purge les sessions et la corbeille expirées.
- volumes : `app_data` (HTML), `db_data` (MariaDB), `media_data`.
- stockage : `app_data` (volume Docker, HTML), `$CLOUD_DB_DIR` (MariaDB) et
`$CLOUD_MEDIA_DIR` (fichiers) en bind mounts hôte.
## API et front