Directus runs on PicoPaaS: MySQL and Spaces together
Directus runs on PicoPaaS with a MySQL database and a Spaces bucket for uploads, exercising the whole platform stack in one app.
We added a Directus recipe. It is the one that uses the whole platform stack at once: managed MySQL for data and the Spaces bucket for uploaded files. We verified that both data and an uploaded file survive a pod restart.
How it fits
The official image (about 242 MB, under the 256 MB cap) runs non-root and is configured only through env vars, so there is nothing to build. MySQL connects over CA-verified TLS by passing ${{ db.ca_cert }} straight into DB_SSL__CA. Files go through Directus's S3 driver using the ${{ storage.* }} refs.
Gotchas
- Set
HOME=/tmpandPM2_HOME=/tmp/.pm2, or pm2 fails with EACCES before the port binds. - Leave the health check off for this one.
- Generate
KEYandSECRETonce and keep them stable, as secrets.
See the Directus section of docs/RECIPES.md and examples/directus.