Sharing Files beetween cloudron Apps
-
Hello,
is it possible to share the file storage (for example the Foto Collection)
between differnet apps/services (for example immich, piwigo, lychee, pixelfed),
to avoid double and tripple storage need and uploads ?
(Same with streaming/multimedia services).Ok, modern storage does deduplication etc,
but my own ubuntu server will currently not do that.And user/group/.. access-rights may be difficult to implement,
but here on cloudrom we have the cloudrom user management,
which could simplyfy that.Thank you for some hints on this!
-
Hello,
is it possible to share the file storage (for example the Foto Collection)
between differnet apps/services (for example immich, piwigo, lychee, pixelfed),
to avoid double and tripple storage need and uploads ?
(Same with streaming/multimedia services).Ok, modern storage does deduplication etc,
but my own ubuntu server will currently not do that.And user/group/.. access-rights may be difficult to implement,
but here on cloudrom we have the cloudrom user management,
which could simplyfy that.Thank you for some hints on this!
@BitEater67 said in Sharing Files beetween cloudron Apps:
is it possible to share the file storage (for example the Foto Collection)
between differnet apps/services (for example immich, piwigo, lychee, pixelfed)Yes.
Use Cloudron Volumes.
I've got a Hetzer Storage Box mounted as a Cloudron Volume where I have all my music stored. Then in App Settings -> Storage I've got that Volume mounted that into various apps (e.g. Navidrome, Jellyfin, Syncthing):
- all works great!
Can even share files across Cloudrons like this too (by creating matching Cloudron Volumes connected to the same Hetzner Storage Box on both Cloudrons).
I also use Syncthing to sync my local
~/Music
folder to the Hetzer Storage Box. -
Think of each as a SaaS, I think the "correct" approach is to upload files in one app. That app exposes an API. Other apps then consume the photos API to do whatever .
The whole sharing files approach is a relic of times when files were hosted on the same server and no sandboxing. But modern deployment/orchestration tech uses sandboxing, containers, docker compose, multiple servers . In such situations, sharing files assuming it's all code runs in same file system doesn't work well. app permissions/owner issues aside, most apps also have a database to track files and store extra metadata . If you remove and delete files from the filesystem without the app's knowledge, it all breaks. apps have to be written with all this in mind and most apps aren't written this way . lychee/nextcloud etc all have their own db and cannot share fs with others.
-
-