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. Shared folders best practice

Shared folders best practice

Scheduled Pinned Locked Moved Solved Support
volumes
4 Posts 3 Posters 763 Views 3 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.
    • A Offline
      A Offline
      annaooo
      wrote on last edited by girish
      #1

      If you would like to share some folders between one or more apps what is the best procedure?

      Option a) make a link betwee two appid data dirs
      cd /home/yellowtent
      mkdir appsdata/<app1id>/shared
      ln -s `pwd`/appsdata/<app1id>/shared appsdata/<app2id>/.

      Option b) create ourdata directory in yellowtent and link from here into appid dirs.
      cd /home/yellowtent
      mkdir -p ourdata/shared
      ln -s `pwd`/ourdata/shared appsdata/<app1id>/.
      ln -s `pwd`/ourdata/shared appsdata/<app2id>/.

      Option c) Create local shared folder and mount into each app using cloundron's docker-likee mount feature?

      Example use case: Nextcloud+Syncthing integration.
      Example use case: Nextcloud+Metabase integration. Upload csvs through nextcloud and have them parsed by metabase csv plugin.

      A 1 Reply Last reply
      0
      • A annaooo

        If you would like to share some folders between one or more apps what is the best procedure?

        Option a) make a link betwee two appid data dirs
        cd /home/yellowtent
        mkdir appsdata/<app1id>/shared
        ln -s `pwd`/appsdata/<app1id>/shared appsdata/<app2id>/.

        Option b) create ourdata directory in yellowtent and link from here into appid dirs.
        cd /home/yellowtent
        mkdir -p ourdata/shared
        ln -s `pwd`/ourdata/shared appsdata/<app1id>/.
        ln -s `pwd`/ourdata/shared appsdata/<app2id>/.

        Option c) Create local shared folder and mount into each app using cloundron's docker-likee mount feature?

        Example use case: Nextcloud+Syncthing integration.
        Example use case: Nextcloud+Metabase integration. Upload csvs through nextcloud and have them parsed by metabase csv plugin.

        A Offline
        A Offline
        annaooo
        wrote on last edited by
        #2

        I'll answer my own question and leave this thread up in-case anyone searches for this on forum.

        The answer is definitely c. As cloudron's clear documentation states you want to use dockers volume like feature which can be controlled through the cloudron ui. Docs: https://docs.cloudron.io/storage/#volumes

        girishG 1 Reply Last reply
        0
        • nebulonN Away
          nebulonN Away
          nebulon
          Staff
          wrote on last edited by
          #3

          As you said, volumes are the correct way to do this. Just wanted to confirm this for other readers.

          1 Reply Last reply
          0
          • A annaooo

            I'll answer my own question and leave this thread up in-case anyone searches for this on forum.

            The answer is definitely c. As cloudron's clear documentation states you want to use dockers volume like feature which can be controlled through the cloudron ui. Docs: https://docs.cloudron.io/storage/#volumes

            girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by girish
            #4

            @annaooo To add to this, it's best to create shared folders under /srv, /mnt, /opt instead of /home/yellowtent. The /home/yellowtent is the home directory of the user which cloudron platform runs as and it's not meant for user data. In fact, it won't let you create a volume under /home/yellowtent.

            1 Reply Last reply
            0
            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