A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Update env-var in Dockerfile, fix volume names
Pit Kleyersburg21cd4e9f14a7
diff --git a/Dockerfile b/Dockerfileindex dade863ca..fec76ee37 100644--- a/Dockerfile+++ b/Dockerfile@@ -19,8 +19,8 @@ RUN mkdir -p /usr/src/paperless/srcCOPY src/ /usr/src/paperless/src/# Set consumption directory-ENV PAPERLESS_CONSUME /consume-RUN mkdir -p $PAPERLESS_CONSUME+ENV PAPERLESS_CONSUMPTION_DIR /consume+RUN mkdir -p $PAPERLESS_CONSUMPTION_DIR# Migrate databaseWORKDIR /usr/src/paperless/srcdiff --git a/docker-compose.yml.example b/docker-compose.yml.exampleindex 7e3557aa8..488fc83d2 100644--- a/docker-compose.yml.example+++ b/docker-compose.yml.example@@ -8,8 +8,8 @@ services:# modifying the part before the `:`.- "8000:8000"volumes:- - paperless-data:/usr/src/paperless/data- - paperless-media:/usr/src/paperless/media+ - data:/usr/src/paperless/data+ - media:/usr/src/paperless/mediaenv_file: docker-compose.envenvironment:- PAPERLESS_OCR_LANGUAGES=@@ -18,20 +18,20 @@ services:consumer:image: paperlessvolumes:- - paperless-data:/usr/src/paperless/data- - paperless-media:/usr/src/paperless/media+ - data:/usr/src/paperless/data+ - media:/usr/src/paperless/media# You have to adapt the local path you want the consumption# directory to mount to by modifying the part before the ':'.- /path/to/arbitrary/place:/consume# Likewise, you can add a local path to mount a directory for# exporting. This is not strictly needed for paperless to# function, only if you're exporting your files: uncomment- # it and fill in a local path if you know you're going to+ # it and fill in a local path if you know you're going to# want to export your documents.# - /path/to/another/arbitrary/place:/exportenv_file: docker-compose.envcommand: ["document_consumer"]volumes:- paperless-data:- paperless-media:+ data:+ media:diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.shindex 9001574a1..14d385469 100644--- a/scripts/docker-entrypoint.sh+++ b/scripts/docker-entrypoint.sh@@ -16,8 +16,8 @@ map_uidgid() {set_permissions() {# Set permissions for consumption directory- chgrp paperless "$PAPERLESS_CONSUME"- chmod g+x "$PAPERLESS_CONSUME"+ chgrp paperless "$PAPERLESS_CONSUMPTION_DIR"+ chmod g+x "$PAPERLESS_CONSUMPTION_DIR"# Set permissions for application directorychown -Rh paperless:paperless /usr/src/paperless