-
Notifications
You must be signed in to change notification settings - Fork 504
Server setup via Docker #2
Comments
The big problem with this is that a "cheap host" is exactly the kind of place you don't want to be sending your private documents. This kind of app is likely to play host to things like your national insurance (social security, whatever) number, VAT, tax information -- all the fiddly stuff people get sent to them in the post for the purposes of a proper paper trail. If we do include a Docker implementation, I think it would have to come with a Great Big Warning that this shouldn't be used on an untrusted service. As for the suggestion that I actually do this, I'm afraid I don't know how :-( I've never used Docker (I'm a Gentooer, everything is built on bare-metal), so I wouldn't know where to start. However, you want to submit a PR with such a script, I'd be happy to roll it into the |
It shouldn't be too hard to make a Dockerfile for this. If one were so inclined they could probably include tesseract et al so all you'd have to do is something like If I have some time and nobody else is interested in it, I might have a go. Technically speaking the Dockerfile would need to live in the project root (unless you wrote a script to move it ;) ) |
If those are the requirements, I'm cool with it. Send me a PR if/when you have time and I'll give it a shot locally before I merge it :-) |
TBH, I never envisaged storing all my insurance (social security, whatever) , VAT, tax information in the cloud?! I saw this app as more useful to scan in the day-to-day expenses from grocery purchases et al. If someone really wanted to hack into that - well, I am sure they would be bored very quickly. @waynew I would be happy to test. |
Well I guess that's the advantage of opening up your code. People see uses for it that you didn't expect. By all means, if one of you wants to write a Docker setup, I'd love to add it to the repo. |
@danielquinn Indeed - and they can make it easily usable where that otherwise might be a barrier. |
Even if one does not want to deploy on cloud can we have a vagrant setup for development purposes? |
I'm not opposed to having a Vagrant setup available, but I'm not going to write it unless I suddenly find myself with an abundance of free time on my hands. However, if someone submits a Vagrantfile, I'll give it a shot and merge it if it works. |
I have written a Vagrantfile here. Take a look. |
I've been thinking about this and I cannot see the reason to add an nginx infront of django unless you want ssl. It would require some specific configuration to get the certs in place. The docker approach for this problem would also be to host nginx and this django app in seperate containers. Especially since there is no static data. I think most reasonable way to package this with docker is with a small modification of djangos image. Should it include the consumer to run default then? But there is no drop-point open unless the user links in some directory or a ftp service from another container. |
I've started some work and I've got the server started, but it doesn't appear to be parsing files from the input directory. My next step was going to be adding the logging module to see if I could pinpoint the cause, as it's failing silently. |
Ah. I see - I expected the server to run all of the things, but I see it's not doing that ;) |
Nope, there's two processes: the |
@stelund there a few elements to consider:
I don't know how any of this plays into Docker though, whether everything needs to be in separate containers or whatnot, but it should be noted that:
|
I've currently run into an issue where the image built from the python 3.5 dockerfile is producing a wonky version of imagemagick - namely there's no ability to convert from pdfs. |
Looks like it's just not installing ghostscript as a default dependency. Very strange, given that both of them have the exact same apt sources.list. There must be some other wizardry at play there. Looks like I've got the document converter running now 🤘 |
@danielquinn Yep, thanks for the heads up. I think getting an ftp server up with docker and to mount both mount the shared data directory should be easy enough. @waynew Great to hear! I havn't gotten that far. So I think I'll leave you to it. Holler if I can help you. |
In case anyone is interested, I have written a Dockerfile for paperless which is available as the There are still a few things to do, mainly adding a user to not use root, but it is functional and I am using it 'in production'. Update: I have implemented both using a different user and being able to install additional languages (readme has still to be updated to reflect the latter). |
Some of you guys may be interested in the pull request @Theconman issued. It's apparently incomplete, but it looks like a simple start. |
The "Dockerfile" (https://github.com/pitkley/dockerfiles/blob/master/paperless/Dockerfile) link is broken? |
@gamesbook The URL you posted was the original one, I've since moved the Dockerfile to it's own repository and edited my comment. I assume you have used the link from the GitHub notification e-mail? Anyway, this is the correct link: https://github.com/pitkley/docker-paperless/blob/master/Dockerfile. |
My Docker-foo is quite minimal, but having looked over #39 it's clear you've done your homework on how to set this up nicely. I'm inclined to merge it as-is, but I'd like to hear from others here before I do as the collective Docker skills here are considerable. |
The mentioned PR #39 is now merged and you can now have an official Paperless Docker image. (It's not on Docker Hub yet, but we'll get there to!) @danielquinn I think you can close this one? |
Indeed! Thanks to everyone for your input! |
It would be really cool to have a small Docker script that allows this project to be built and deployed behind an Apache or nginx server; that way a person could simply drop into onto a cheap host somewhere in the cloud and have the service accessible to them from everywhere...
The text was updated successfully, but these errors were encountered: