chore: store database and media on host bind mounts
CD — Déploiement / deploy (push) Failing after 1s
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user