Fundamentals
Databases
Databases belong to a project and are shared by the apps that use them.
Provisioning not available yet
Databases can be added to apps and are recorded, but not created. No connection details are passed to the app. A database stays in the state requested until provisioning is available.
A project has at most one database per kind. Apps that request the same kind share it. The canvas shows each database with the number of apps using it.
copperfox
Live
cinderrock
Live
postgres
used by 2 apps
Kinds
| Database | Console versions | CLI and lily.toml |
|---|---|---|
| PostgreSQL | 17, 16, 15 | postgres |
| MySQL | 8.4, 8.0 | mysql |
| MariaDB | mariadb | |
| MongoDB | 8.0, 7.0 | mongodb |
| Redis | 7.4, 7.2 | redis |
| SQLite | sqlite |
Add a database
- Console: select Add Database on the app card during configuration. LILY also proposes databases detected in your code.
- CLI: pass
--db <root>=<kind>tolly deploy, or list databases inlily.toml.
With provisioning, a database moves through the states requested, provisioning and ready.