• 1 Post
  • 35 Comments
Joined 2 years ago
cake
Cake day: June 9th, 2023

help-circle

















  • These comments all make this seem super complicated. I have a ZFS array on proxmox that exports itself over NFS and also an unraid server that has a share exported over NFS. I mount both into docker containers as needed. I’m in my phone so I’ll just copy and paste my install notes, hope that helps:


    Proxmox Host Setup for NFS: -> proxmox install NFS server: apt install nfs-kernel-server -> create a filesystem for dockerData (makes snapshots easier and limits permissions) -> zfs create zfspool1/dockerData -> zfs set sharenfs=‘[email protected]/24,no_root_squash’ zfspool1/dockerdata -> zfs get sharenfs (to make sure only specific file systems are shared)


    unraid: -> export NFS share with ‘private’ and set rule to: 192.168.37.0/24(rw)


    Docker host setup (in my case I run an alpine server VM on proxmox:

    apk add nfs-utils -> rc-update add nfsmount -> rc-service nfsmount start


    In docker compose you will need a volume section at the top

    volumes: sonarr-config: name: sonarr-config driver_opts: type: nfs o: addr=192.168.37.25,nolock,soft,rw device: :/zfspool1/dockerData/arr-stack/

    Followed by something this in the compose: arr-stack-sonarr: image: ghcr.io/linuxserver/sonarr container_name: arr-stack-sonarr volumes: - sonarr-config:/config - media-tv:/tv - media-downloads:/downloads:z