Posts by bux024

    Thanks again, using the variable "PAPERLESS_FILENAME_FORMAT" in the portainer docker compose works!


    tbh, I'm pretty new to the Docker world.


    As per my understanding, .env variables will be set with a "=", like


    PAPERLESS_FILENAME_FORMAT={correspondent}/{created_year}/{asn}_{title}


    and in .yml with a ":" like


    PAPERLESS_OCR_LANGUAGE: eng



    At first I tried to set the variable PAPERLESS_FILENAME_FORMAT={correspondent}/{created_year}/{asn}_{title} directly in the .yml, but portainer refused as no ":" have been found.


    Honestly, I didn't try to set this variable with a ":" instead of an "=".


    Is that what you mean?


    Thought that .env variables cannot be set in the .yml :S


    Thank you very much for sharing your thoughts on this.


    so I managed to get the three containers deployed via CLI and with the variable set in the .env file everything works well! ^^^^

    after nearly going nuts because I ran into some issues, everything went well.

    The variables have been applied from the .env file.

    Still wonder why it didn't work via portainer stack.




    Why not just add the environment variable to the docker-compose file?


    Docker-compose reads the .env file in the directory of the docker-compose.yml file automatically, env_file is relative to the directory the docker-compose file is in too. If you use portainer, the docker-compose.yml is stored insode the named volume portainer_data. You do not have access to it.


    You create a file named docker-compose.env and set the variables there.


    If you launch the YML from CLI, the file can be on the same folder.


    If on portainer, click, load variables from file, and point to that file.


    paperless has a compose file for portainer. as far as i know you cannot use .env files directly in that case. only upload them in the portainer stack setup dialogue. thats what I did, but the variables have been ignored all the time.





    Thank you guys so much! Learned a lot today :)

    Hello all,


    I've successfully set up paperless-ngx (here) and set the volume path.


    As paperless stores the .pdf files plain as something like "00001.pdf", i wanted to use the environment variable "PAPERLESS_FILENAME_FORMAT".


    Unfortunately, paperless-ngx still stores the documents as before and no new directories will be created.

    Even the filename wont change (documents are still stored as mentioned above).


    Tried to run document_renamer multiple times: complted with no errors, but no changes visible.

    New added documents will also be stored like before.


    Please see my compose and .env files below. Is there any mistake which prevents paperless-ngx from storing the documents like set in the environment variable?


    All folders for Paperless (except pgdata (postgres)) have rwxrwsrwx permissions set. All subfolders too.


    compose:



    .env:

    Code
    PAPERLESS_FILENAME_FORMAT={correspondent}/{created_year}/{asn}_{title}






    Link to paperless-ngx wiki for mentioned environment variable: https://paperless-ngx.readthed…e.html#file-name-handling



    Any support is really appreciated.


    Thank you very much in advance.

    It works! Had to change the db and broker volume paths too.

    Thank you so much macom ! Learned a lot!


    Maybe someone runs into the same issue, so here is the docker-compose file which works for me to get the paperless-data on my raid1-volume:


    Hi Macom,


    thank you very much for clarifying!


    I've changed the my compose file as follow and removed the "volumes" section at the end of the file.


    Unfortunately, portainer wont update the stack because of the following error:


    Failure

    failed to deploy a stack: Duplicate mount points: [/srv/dev-disk-by-uuid-6382042f-53da-42b5-8328-2d70a8d49bdd/Paperless/data:.:/usr/src/paperless/data, /srv/dev-disk-by-uuid-6382042f-53da-42b5-8328-2d70a8d49bdd/Paperless/media:.:/usr/src/paperless/media, /srv/dev-disk-by-uuid-6382042f-53da-42b5-8328-2d70a8d49bdd/Paperless/export:.:/usr/src/paperless/export, /srv/dev-disk-by-uuid-6382042f-53da-42b5-8328-2d70a8d49bdd/Paperless/consume:.:/usr/src/paperless/consume] : exit status 1


    Tried to remove all docker volumes and compose again. Unfortunately this did not resolve the error message.

    Hello all,

    I've got OMV6 running on a machine with 3 drives.


    Volume 1 is a RAID 1 volume containing drive sda and sdb.

    Drive sdc is the drive where OMV is installed.

    yaz9dfx3pmz81.png?width=2224&format=png&auto=webp&s=0292b47a6c405e7c9b85a3d53ff7d452bec819b4


    t1wpijk7pmz81.png?width=2223&format=png&auto=webp&s=c1f3dbd5f91ed48fff2cf2bc2d554f8f2a77d732



    Now I want to use paperless-ngx to manage my paper documents and archive them.

    I've successfully installed paperless-ngx (https://github.com/paperless-ngx/paperless-ngx)via Docker/Portainer. LogIn is possible etc.


    For saving the documents I've created an shared folder in OMV called paperless.

    This folder contains the folders consume, data, export and media.




    6plxxs4rpmz81.png?width=2236&format=png&auto=webp&s=0fb5ef12c36d35663e5b0fbb556ea240e8cdf902



    4mawvhcupmz81.png?width=766&format=png&auto=webp&s=2dc0cf5e6b4432cbc4b24aafba9f417e83d15e9c



    The 4 directories have been set in the docker-compose file I use in portainer (see code below).

    I can upload documents at Paperless and view them after, but every of the 4 directories stay empty.


    My question is: Why? Is there any mistake in my docker compose file? I've never referenced to a directory in a RAID 1 before, so I assume my docker-compose file is not set up properly.


    I'am pretty new to docker so any help is highly appreciated!


    Thank you very much in advance <3