-
Notifications
You must be signed in to change notification settings - Fork 499
Documentation for easy Docker install #684
Comments
I just switched from a bare metal (LXC) install to a Docker install using I don't think Paperless in Docker is ever going to be a one-click type of thing. Understanding Docker so that you only have to edit a single It sounds like you're trying to use the docker-compose file in Portainer. What specific problem are you having? |
So I threw OMV in a VM, installed Docker and Portainer, and tried to get Paperless installed. I ran into several issues, and these issues really make it hard to have "really easy" installation directions. First, Portainer does not support docker-compose files above version 2.0. I won't get into the why, but the docker-compose file that Paperless uses is version 2.4. One of the errors that Portainer gave was that the
Also, the The second issue I ran into is that the Paperless docker-compose file relies on several external files to work. The external files are The third issue I found is that OMV doesn't show you all the necessary information to define you consume directory. You will need to modify both consume lines to point to the actual place you want Paperless to read documents from. OMV doesn't show the full paths, but Shared Folders are located at Portainer not supporting docker-compose version 2.4 (Dec 2017), is the biggest issue here. If Portainer supported version 2.4, you could feed the whole Paperless git repo to Portainer, and this would fix #1 and #2 above. You could then override the location of the consume directory with environmental variables, which addresses #3 above. Paperless doesn't (and shouldn't) handle creating your consume directory or handling how that consume directory is shared. Because of that, there's never going to be a one-click installation method for Paperless, you're always going to have to do at least a little customization to match your own environment. Providing a git repo and a docker-compose file that you can edit, is probably the fastest and easiest way to distribute and install Paperless. tl;dr: Going to the shell of OMV and using the Docker Installation Method is probably the best/easiest way to get Paperless installed. |
A couple of other potential ideas I thought may be worth mentioning: Apparently you can create a one-node Docker Swarm in Portainer, and after doing this you can somehow use a docker-compose that supports version 3 files. Just something I briefly read, I don't know the details. It also may be an option to manually build the Paperless image in Portainer, and then specify that image in your docker-compose file. That would address the biggest issue in my previous post. Another idea I had is to clone the Paperless git repo and create/modify a docker-compose.yml file to work with version 2.0 (see changes in my last post). Then you may be able to give that new git repo to Portainer using the "git repository" option on the "Add Stack" menu. IMO, all those options are still more difficult that just using the already-documented Docker directions. |
Hi ! Thanks to all for the answers ! If no one click install is possible, is something with less line in CLI possible ? So if the docker actual way is the only solution, is it possible to write à very friendly user tutorial.
When i read this point i ask me many questions :
I have few basics in docker but it is still difficult for me to understand everything if it is not a step by step guide. The paperless project look like one of easiest to use tool for be paperless (the only more easy i know is paperwork but it is a local one computer system). I hope after the install will be done the difficult part will be over. Thanks to all for your answers |
I see what you are saying. But unfortunately, I don't think it's ever going to be that easy. First, the location of the Paperless consume directory is going to be different for every person. And just due to this, you're going to have to make a customization that's specific to you. A generic solution won't work for everybody. Second, the basics of shell usage is assumed. In my opinion, it's out of the scope of Paperless to tell you where to put your files or how to copy them. Paperless can't walk you through everything. Some people may then ask "how do I connect with SSH?" or "how do I install Linux so I can run this?" You'd probably agree that Paperless shouldn't go over those things. I don't want to be insensitive here. I completely understand where you are coming from and the whole reason I responded was to see if I could help make it easier for you. In the Open Project link you posted, there are two steps to get it working are a I think the issues you are having are outside of the scope of the Paperless application. The ability to do basic tasks in a shell are assumed. I also don't think there is any way to make the installation any easier (without requiring a crazy amount of dev effort). To help you and other people in your situation, I'll write something up that gives all the steps to get Paperless working in Docker. Give me some time on that. |
Alright. I wrote out the process of running Paperless using Docker. I posted it on my website. The directions were intended to be generic, so it's not specifc to OMV. That said, I did test them on OMV. Two OMV-specific points:
Let me know if any parts are not clear. |
Hi ! THAT WAS PERFECT ! Thanks fort all your time. Your step by step guide was really easy to use. Just few things i did after :
Now i just have to learn how to use Paperless with script and IMAP for make it super powerful (even if it is already). Thanks to everyone who helped ! Next time i will open an issue, i think it will be for help too. I can see there is no french translation for the moment, maybe i can help with that. :-) |
Hi everyone !
After trying many times to install Paperless with Docker, I exchanged few tweets with Daniel, who said me to put an issue for my problem.
My actual problem is that i am not a dev. ^^
It explain why i used Twitter before an issue. When you are not a developer make an issue is really not intuitive at all.
Docker is the same, in worst, for be honest, even if it is very powerfull, i fucking hate docker. I have a NAS wich run OMV, which had many plug-in before, and they disappeared on the latest version because docker is "more easy". Like the documentation of paperless say "The docker route is quick & easy.". Docker is never quick & easy for normal humans, end even few of my friends, who are dev as a job, say they hate it too.
By the way, even if i hate it, i learned the basic and how to use it. Now my NAS run 17 containers, some very easy (airsonic, handbrake) and others less easy (Nextcloud). My goal is to use as less as possible Command lines, wich i had to use with the Docker compose directly in Portainer for one container, and one time with SSH connection (for Open Project). But i had to use only one line for the container appear in Portainer just after.
Paperless is my biggest problems, i tryed over the Docker compose inside Portainer, but it ask me an array somewhere i didn't really understand. I searched on internet but the only few answers i found didn't work.
I know that paperless is free and i cannot ask it to be a one click installation. But if it is not possible to make the Docker install way more easy (without CLI i mean, and as less code as possible), could it be possible to have à step by step documentation, or a video tutorial which explain everything ? I learned how to use the basics of docker like this, with the video of TechnoDadLife and The duke of Puteaux.
Thanks in advance for your answers, and sorry for everyone who love Docker. ;-)
The text was updated successfully, but these errors were encountered: