Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Sharing Files beetween cloudron Apps

Sharing Files beetween cloudron Apps

Scheduled Pinned Locked Moved Solved Support
sharingvolumes
3 Posts 3 Posters 206 Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BitEater67
    wrote on last edited by joseph
    #1

    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!

    jdaviescoatesJ 1 Reply Last reply
    1
    • B BitEater67

      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!

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by jdaviescoates
      #2

      @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):

      59199529-c580-4378-9dca-929003cd282d-image.png - 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.

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      3
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • J joseph marked this topic as a question on
        • J joseph has marked this topic as solved on
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search