To be honest, I don’t know how to see if the data exists in the container, I’m not sure where it’s getting saved to. This is the default folder it’s supposed to be at:
/var/lib/docker/volumes/paperless_media/_data
but my understanding is I don’t have access to it since I am using docker desktop on macos and it’s in a linux VM.
I mostly followed your blog post up until the macos section (my apologies, I’m not a programmer and mostly only understand compose). You did post an example of a nfs share service compose but I’m not fully sure how I tie it back to my ‘media’ folder I’m trying to setup in paperless-ngx. Does this service need to be added to my paperless compose or is it a separate compose altogether?
services:
nfs-server:
image: openebs/nfs-server-alpine:0.11.0
volumes:
- /var/lib/docker/volumes:/mnt/nfs #do i change this to my folder path?
environment:
SHARED_DIRECTORY: /mnt/nfs
SYNC: sync
FILEPERMISSIONS_UID: 0
FILEPERMISSIONS_GID: 0
FILEPERMISSIONS_MODE: "0755"
privileged: true
ports:
- 127.0.0.1:2049:2049/tcp #do these ports need to line up with the paperless ports?
- 127.0.0.1:2049:2049/udp
And it looks like I make the actual directory (which I’ve already made). Then I run the chmod command to change the permissions of the folder?
sudo chmod 0700 /var/lib/docker #not sure what the 0700 means though
After that I mount the folder which makes sense. I’m just a little confused on some of the inbetween steps. I’ve added my comments to the lines I don’t fully understand. I appreciate your help and blog post. Just trying to wrap my head around it a bit more.