How to architecture app?

I want to publish an app which needs a DB (postgreSQL) and an object storage (garage). Should those be supplied by the app itself or should they be published on their own (like the btc & lighting app)?
Because I didn’t see any db-app I assume they should be bundled with your app but I also think something like garage benefits from being its own app e.g. data redundancy when deploying multiple.

Thanks in advance for your help.