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. App Packaging & Development
  3. Custom app: docker volume mapping

Custom app: docker volume mapping

Scheduled Pinned Locked Moved App Packaging & Development
13 Posts 4 Posters 1.8k 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.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #2

    If the config can change, it should be under /app/data

    1 Reply Last reply
    0
    • timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by
      #3

      Are you running docker from the host ?
      Normally you should build a Dockerfile

      J 1 Reply Last reply
      0
      • timconsidineT timconsidine

        Are you running docker from the host ?
        Normally you should build a Dockerfile

        J Offline
        J Offline
        jbrichez
        wrote on last edited by jbrichez
        #4

        @timconsidine I have connected my cloudron cli to my cloudron instance and i'm running command from my computer:

        cloudron install --image hotio/jellyseerr
        

        No i don't think the config will change

        1 Reply Last reply
        0
        • timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #5

          Ok but is this image built for Cloudron ? Or you’re using a pre-built image ?

          J 1 Reply Last reply
          0
          • timconsidineT timconsidine

            Ok but is this image built for Cloudron ? Or you’re using a pre-built image ?

            J Offline
            J Offline
            jbrichez
            wrote on last edited by
            #6

            @timconsidine I'm using a pre-built image from docker hub

            1 Reply Last reply
            0
            • timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #7

              If the config is not ever going to change, it can be read-only and included in the app’s files under /app/code.

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jbrichez
                wrote on last edited by jbrichez
                #8

                Ok i understant but where is made the mapping exactly ?

                EDIT: after some research, yes the app need to store some files

                1 Reply Last reply
                0
                • girishG girish moved this topic from Support on
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #9

                  @jbrichez in the Dockerfile, you can just symlink /config (or whatever) to say /app/data/config . The mapping is created in the Dockerfile.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    jbrichez
                    wrote on last edited by
                    #10

                    I successfully started the app then when i check the container's volume I can see that:

                    [{bind  /media/movies /media/movies   true rprivate} {bind  /home/yellowtent/appsdata/4a224e49-5a30-49ae-bb2b-2b22731ab6ed/data /app/data   true rprivate} {volume 585faa40fe07d43726062f11d0530fad796806b03a3c1c39daab3a9a86b14542 /var/lib/docker/volumes/585faa40fe07d43726062f11d0530fad796806b03a3c1c39daab3a9a86b14542/_data /tmp local  true } {volume 28fcf47257a3b52162a2998df0eff0b325570c0cef49478f37cff3ecea7d0fda /var/lib/docker/volumes/28fcf47257a3b52162a2998df0eff0b325570c0cef49478f37cff3ecea7d0fda/_data /run local  true }]
                    

                    There is my question answer probably...
                    This is the mapping I was looking for 🙂

                    When we used the cloudron cli, behind you automatically create a volume and attached it my custom app...
                    I didn't see that in the doc. Is it written somewhere ?

                    1 Reply Last reply
                    0
                    • girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #11

                      @jbrichez maybe you are asking for https://docs.cloudron.io/packaging/cheat-sheet/#filesystem ?

                      J 1 Reply Last reply
                      0
                      • girishG girish

                        @jbrichez maybe you are asking for https://docs.cloudron.io/packaging/cheat-sheet/#filesystem ?

                        J Offline
                        J Offline
                        jbrichez
                        wrote on last edited by
                        #12

                        @girish I think it is. But this was not really clear when i read it the first time

                        1 Reply Last reply
                        0
                        • BrutalBirdieB Offline
                          BrutalBirdieB Offline
                          BrutalBirdie
                          Partner
                          wrote on last edited by
                          #13

                          Still, a Cloudron App should not need a volume by default.

                          Like my work? Consider donating a drink. Cheers!

                          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