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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Shared folders best practice

    Support
    volumes
    3
    4
    205
    Loading More Posts
    • 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
      annaooo last edited by girish

      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 Reply Quote 0
      • A
        annaooo @annaooo last edited by

        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

        girish 1 Reply Last reply Reply Quote 0
        • nebulon
          nebulon Staff last edited by

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

          1 Reply Last reply Reply Quote 0
          • girish
            girish Staff @annaooo last edited by girish

            @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 Reply Quote 0
            • First post
              Last post
            Powered by NodeBB