57 Commits

Author SHA1 Message Date
Jonas Winkler
45aab154de updated the build process, it now works on RPi as well. 2020-11-18 22:43:36 +01:00
Jonas Winkler
e0f78f9b93 more documentation. 2020-11-18 00:00:55 +01:00
Jonas Winkler
508d9b6e13 updated release scripts 2020-11-15 16:40:03 +01:00
Jonas Winkler
cc559c73c2 added a handy script to make a release package. 2020-11-14 12:58:11 +01:00
Jonas Winkler
12b70a13be getting paperless-ng ready for the first release. 2020-11-14 12:10:51 +01:00
Jonas Winkler
6120a316b4 updated some dependencies, updated docker files 2020-11-13 18:42:32 +01:00
Jonas Winkler
4c5400e28a a handy script that brings up postgres and redis 2020-11-11 20:25:33 +01:00
Jonas Winkler
d3e7c8ff4e added a task scheduler for recurring tasks 2020-11-09 20:29:10 +01:00
Jonas Winkler
e326bc4f51 updated dockerfiles 2020-11-01 23:01:36 +01:00
Jonas Winkler
46d1fdc108 fixed folders, compatible with previous paperless version 2020-10-29 14:30:15 +01:00
Jonas Winkler
7a620521bb i fixed the docker 2020-10-29 00:46:57 +01:00
Jonas Winkler
c1ab22fcb8 moved gunicorn config 2020-10-27 01:08:50 +01:00
lawtancool
07464654e1 change gunicorn workers to 3
Assuming a single core system,  (2 x $num_cores) + 1 = 3
(see https://docs.gunicorn.org/en/stable/design.html#how-many-workers)
2020-05-19 09:41:08 -07:00
lawtancool
ea41be154c Change gunicorn workers from 1 to 4
see https://docs.gunicorn.org/en/stable/design.html#how-many-workers
2020-05-03 20:16:55 -07:00
ahyear
a6d22f85ab Merge pull request #599 from ljm42/patch-1
Allow non-unique GIDs
2020-03-15 04:43:09 +01:00
JOKer
3ed2ad5fbc Merge pull request #581 from nxnjz/patch-1
added dependency on network.target so that paperless-webserver can cleanly shutdown before the network goes down (during reboots, etc.)

network-online.target is not required when accessing paperless on localhost, so having a dependency on it is not necessary.
2020-02-28 23:12:26 +01:00
nxnjz
f4eb106a1b Update paperless-webserver.service 2020-02-27 20:05:50 +02:00
ljm42
c04ab1f9d4 Allow non-unique GIDs
Need to allow non-unique group ids, so paperless can map to an existing GID.

The comment says the map_uidgid() function came from docker-gitlab, the same fix was applied there too:
  c80bd87662
2020-01-05 18:20:03 -08:00
nxnjz
7806e27380 added dependency on network.target 2019-11-19 22:16:53 +02:00
Fabian Winter
d786b3b7b6 Address comments 2019-11-03 20:14:17 +01:00
Fabian Winter
d740b6d5e7 Support SSL for web interface
Thanks to @MasterofJOKers, here is basic support for SSL:
You need to create your key and certificate and copy them to the `data`
directory, named `ssl.cert` and `ssl.key`.
Then, set `PAPERLESS_USE_SSL` in `docker-compose.env` to `true`.

Solves #576.
2019-11-03 18:30:43 +01:00
Florian Gabsteiger
1c3c65bf20 Enable user-controlled gunicorn options in docker-compose file 2019-09-22 11:47:22 +02:00
Florian Gabsteiger
c7e5bd96df Copy gunicorn.conf to docker container and use it in entrypoint 2019-09-22 11:47:22 +02:00
Florian Gabsteiger
89e298734e Add gunicorn option to docker-entrypoint script 2019-09-22 11:47:22 +02:00
schwabelbauch
074c8e59a0 Update docker-entrypoint.sh
fixed issue with installing tesseract languages
2019-03-27 22:22:20 +01:00
Daniel Quinn
143ad66706 Use [[]] instead of [] in Bash scripts 2018-12-30 17:32:17 +00:00
Joshua Taillon
bb4c941370 Update paperless-webserver.service
Update `gunicorn` command to use `--pythonpath`
2018-11-16 09:21:07 -05:00
Sharif Nassar
7831991ecd Remove Vagrant docs
* Vagrant does not seem to have any libvirt boxes for Ubuntu any more.
* Vagrant 2 was released a year ago, but vagrant-libvirt only claims
  to support up to Vagrant 1.8.
2018-10-13 11:31:53 -07:00
Daniel Quinn
24cd20dffc Merge @ovv's documentation changes and tweak the grammar a bit 2018-07-08 22:14:17 +01:00
Sven Fischer
1c0801a3ec fix bug where docker-entrypoint.sh exits w/o notice
This commit fixes a nasty bug, where the docker-entrypoint.sh silently
exits without any error message. The test for a lock file can fail and
due to the `set -e` at the beginning of the file the bash script exists
without starting the paperless application.
It is fixed by moving the check for the existence of the lock file into
the if statement, where the `set -e` does not trigger an exit in case
the statement fails.

Additionally this commit enables the script to trap exit signals and in
that case deletes the lock file.
2018-05-15 19:34:21 +02:00
Ovv
4818cd11da Installation documentation setup
Issue #329
2018-04-25 19:51:21 +02:00
Erik Arvstedt
7157ed2bdd Use --noreload for permanent server start commands
Without it, the server is highly resource-intensive even when
running idle
2018-03-23 11:13:20 +01:00
Daniel Quinn
fb78ee8648 Merge pull request #312 from pitkley/docker-fix-groupmod
Fix modifying the GID under alpine
2018-02-25 12:43:22 +01:00
Pit Kleyersburg
55c8b1b332 Fix modifying the GID under alpine
Fixes #306.
2018-02-25 12:36:51 +01:00
Georgi Todorov
0f6ff6ad53 Add a dependency link between two containers and change the way Django migrations are done. Provide example for auto-starting the containers 2018-02-05 18:23:35 -05:00
Guy
febf6799ef adapted docker-entrypoint script for alpine docker image (mainly how to
install additional OCR languages)
2017-12-20 16:17:58 +02:00
Pit Kleyersburg
6739c46662 Set g+w on the consumption/export directories
This should fix issue #267.
2017-10-31 15:30:33 +01:00
Sven Fischer
951477224e docker-entrypoint.sh: fix shellcheck issues
issues found by shellcheck were:

```
$ shellcheck docker-entrypoint.sh

In docker-entrypoint.sh line 10:
    if [[ ${USERMAP_UID} != ${USERMAP_ORIG_UID} || ${USERMAP_GID} != ${USERMAP_ORIG_GID} ]]; then
                            ^-- SC2053: Quote the rhs of != in [[ ]] to prevent glob matching.
                                                                     ^-- SC2053: Quote the rhs of != in [[ ]] to prevent glob matching.

In docker-entrypoint.sh line 12:
        groupmod -g ${USERMAP_GID} paperless
                    ^-- SC2086: Double quote to prevent globbing and word splitting.

In docker-entrypoint.sh line 65:
        if dpkg -s "$pkg" 2>&1 > /dev/null; then
                          ^-- SC2069: The order of the 2>&1 and the redirect matters. The 2>&1 has to be last.

In docker-entrypoint.sh line 69:
        if ! apt-cache show "$pkg" 2>&1 > /dev/null; then
                                   ^-- SC2069: The order of the 2>&1 and the redirect matters. The 2>&1 has to be last.
```
2017-06-12 21:09:59 +02:00
Sven Fischer
0f812f4e76 Docker: review refacorting for export directory preparation 2017-05-02 19:52:36 +02:00
Sven Fischer
d4e972e96f Docker: review fix: if end-user host-mounts the export directory 2017-05-02 19:06:01 +02:00
avichalp
92900f5c7e add gunicorn configuration file 2016-09-21 00:04:41 +05:30
Daniel Quinn
e0ce2a7656 The consumer hook shouldn't contain the passphrase. That was a bad idea 2016-04-03 19:35:17 +01:00
Daniel Quinn
263d60858f Fixed up the consumer hook example 2016-04-03 19:28:24 +01:00
Pit Kleyersburg
f88ec987a3 Don't fail on setting consumption-dir permissions
Changing the group or permissions on the consumption directory can fail,
especially on network-mounted directories. If it fails, don't exit the
consumer, but rather output a warning on what the user has to do.

This is related to (and should close) issue #102.
2016-03-30 15:49:56 +02:00
Daniel Quinn
cb2df58b27 Everything appears to be working 2016-03-28 19:47:11 +01:00
Pit Kleyersburg
fb36a49c26 Add unpaper as another pre-processing step 2016-03-06 15:30:37 +01:00
Daniel Quinn
1ffce8f52d Documented the API and added some help for the config file 2016-03-04 23:59:13 +00:00
Daniel Quinn
66d4407565 #68: Using dotenv for a proper unix config file 2016-03-03 18:01:02 +00:00
Daniel Quinn
0aead1fbe6 #68: Using dotenv for a proper unix config file 2016-03-03 17:59:27 +00:00
Daniel Quinn
4d685ee424 Merge branch 'master' of github.com:danielquinn/paperless 2016-03-03 11:00:58 +00:00