Hi folks,

You all have been instrumental to my self-hosting journey, both as inspiration and as a knowledge base when I’m stumped despite my research.

I am finding various different opinions on this and I’m curious what folks here have to say.

I’m running a Debian server accessible only within the home with a number of docker images like paperless-ngx, jellyfin, focalboard, etc. Most of the data actually resides on my NAS via NFS.

  1. Is /mnt or /media the correct place to mount the directories. Is mounting it on the host and mapping the mount point to docker with a bind the best path here?

  2. Additionally, where is the best place to keep my docker-compose? I understand that things will work even if I pick weird locations, but I also believe in the importance of convention. Should this be in the home directory of the server user? I’ve seen a number of locations mentioned in search results.

  3. Do I have to change the file perms in the locations where I store the docker compose or any config files that don’t sit on the other end of NFS?

Any other resources you wish to share are appreciated. I appreciate the helpfulness of this community.

  • KyuubiNoKitsune
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    14 days ago

    I found this to be extremely underperforming. If you plan on doing anything that requires high throughput, don’t use the docker NFS operator.

    • mbirth@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      14 days ago

      There’s no difference between using a volume in Compose to mount a share or your server’s fstab file. Both do the same kind of mount.

      • KyuubiNoKitsune
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 days ago

        It’s doing something different, I was using to mount an AWS FSx for ZFS share on a beefy machine (1.2GB/s network throughput) and was getting less than 50MB/s throughput using docker to mount it, but getting the full 1.2GB/s when mounted outside and mapped to a volume in the container.

        • mbirth@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 days ago

          How did you mount it outside the cluster? Did you have a look at the mtab and used the exact same options in the compose file?

          • KyuubiNoKitsune
            link
            fedilink
            English
            arrow-up
            1
            ·
            13 days ago

            It’s been a few months but I as far as I remember used all the same mounting options