From 11291327055991bff021d8a780d9c6fd697f60d1 Mon Sep 17 00:00:00 2001 From: technorabilia Date: Tue, 20 Jul 2021 00:50:38 +0000 Subject: [PATCH] Workflow update --- lsio/paperless-ng/docker-compose.yaml | 29 +++++++++++++++++++++++++++ lsio/paperless-ng/docker-run.sh | 17 ++++++++++++++++ lsio/paperless-ng/run-once.sh | 4 ++++ 3 files changed, 50 insertions(+) create mode 100644 lsio/paperless-ng/docker-compose.yaml create mode 100644 lsio/paperless-ng/docker-run.sh create mode 100644 lsio/paperless-ng/run-once.sh diff --git a/lsio/paperless-ng/docker-compose.yaml b/lsio/paperless-ng/docker-compose.yaml new file mode 100644 index 0000000..5de6b87 --- /dev/null +++ b/lsio/paperless-ng/docker-compose.yaml @@ -0,0 +1,29 @@ +# [Paperless-ng](https://github.com/jonaswinkler/paperless-ng) is an application +# by Daniel Quinn and contributors that indexes your scanned documents and +# allows you to easily search for documents and store metadata alongside your +# documents.' + +--- +version: "2.1" +services: + paperless-ng: + image: ghcr.io/linuxserver/paperless-ng + container_name: paperless-ng + environment: + # for GroupID + - PUID=${PUID:-1024} + # for UserID + - PGID=${PGID:-100} + # Specify a timezone to use for example Europe/Amsterdam + - TZ=${TZ:-Europe/Amsterdam} + # Specify an external redis instance to use. Can optionally include a port (`redis:6379`) and/or db (`redis/foo`). If left blank or not included, will use a built-in redis instance. If changed after initial setup will also require manual modification of /config/settings.py + - REDIS_URL= # optional + volumes: + # Contains all relevant configuration files. + - ${BASEDIR:-/volume1/docker}/paperless-ng/config:/config + # Storage location for all paperless-ng data files. + - ${BASEDIR:-/volume1/docker}/paperless-ng/data:/data + ports: + # http gui + - 8000:8000 + restart: unless-stopped diff --git a/lsio/paperless-ng/docker-run.sh b/lsio/paperless-ng/docker-run.sh new file mode 100644 index 0000000..0aaa0d1 --- /dev/null +++ b/lsio/paperless-ng/docker-run.sh @@ -0,0 +1,17 @@ +# [Paperless-ng](https://github.com/jonaswinkler/paperless-ng) is an application +# by Daniel Quinn and contributors that indexes your scanned documents and +# allows you to easily search for documents and store metadata alongside your +# documents.' + +source ./.env +docker run -d \ + --name=paperless-ng \ + -e PUID=${PUID:-1024} `# for GroupID` \ + -e PGID=${PGID:-100} `# for UserID` \ + -e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \ + -e REDIS_URL= `# optional` `# Specify an external redis instance to use. Can optionally include a port (`redis:6379`) and/or db (`redis/foo`). If left blank or not included, will use a built-in redis instance. If changed after initial setup will also require manual modification of /config/settings.py` \ + -p 8000:8000 `# http gui` \ + -v ${BASEDIR:-/volume1/docker}/paperless-ng/config:/config `# Contains all relevant configuration files.` \ + -v ${BASEDIR:-/volume1/docker}/paperless-ng/data:/data `# Storage location for all paperless-ng data files.` \ + --restart unless-stopped \ + ghcr.io/linuxserver/paperless-ng diff --git a/lsio/paperless-ng/run-once.sh b/lsio/paperless-ng/run-once.sh new file mode 100644 index 0000000..ff78894 --- /dev/null +++ b/lsio/paperless-ng/run-once.sh @@ -0,0 +1,4 @@ +ln -s ../docker-env.cfg ./.env +. ./.env +mkdir -p ${BASEDIR:-/volume1/docker}/paperless-ng/config +mkdir -p ${BASEDIR:-/volume1/docker}/paperless-ng/data