Initial commit

This commit is contained in:
2025-11-06 20:28:41 +01:00
commit 5fc4fbcef3
182 changed files with 4742 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
[Unit]
Description=Gotenberg container for Paperless
[Container]
AutoUpdate=registry
ContainerName=gotenberg
Environment=TZ=Europe/Zurich
Exec=gotenberg --chromium-disable-javascript=true --chromium-allow-list=file:///tmp/.*
Image=docker.io/gotenberg/gotenberg:8
Pod=paperless.pod
StartWithPod=true
Timezone=Europe/Zurich
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/consume
Driver=local
Options=bind
Type=none
VolumeName=paperless-consume

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/data
Driver=local
Options=bind
Type=none
VolumeName=paperless-data

View File

@@ -0,0 +1,21 @@
[Unit]
Description=Database container for Paperless
[Container]
AutoUpdate=registry
ContainerName=paperless-database
Environment=POSTGRES_USER=paperless
Environment=POSTGRES_DB=paperless
Environment=TZ=Europe/Zurich
Image=docker.io/library/postgres:18
Pod=paperless.pod
Secret=database-password,type=env,target=POSTGRES_PASSWORD
StartWithPod=true
Timezone=Europe/Zurich
Volume=paperless-database.volume:/var/lib/postgresql
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/database
Driver=local
Options=bind
Type=none
VolumeName=paperless-database

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/export
Driver=local
Options=bind
Type=none
VolumeName=paperless-export

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/media
Driver=local
Options=bind
Type=none
VolumeName=paperless-media

View File

@@ -0,0 +1,7 @@
[Volume]
Copy=true
Device=/var/mnt/nas/containers/paperless/storage/redis-data
Driver=local
Options=bind
Type=none
VolumeName=paperless-redis-data

View File

@@ -0,0 +1,18 @@
[Unit]
Description=Redis container for Paperless
[Container]
AutoUpdate=registry
ContainerName=paperless-redis
Environment=TZ=Europe/Zurich
Image=docker.io/library/redis:8
Pod=paperless.pod
StartWithPod=true
Timezone=Europe/Zurich
Volume=paperless-redis-data.volume:/data
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,43 @@
[Unit]
Description=Paperless container
After=gotenberg.container
After=paperless-database.container
After=paperless-redis.container
After=tika.container
Requires=gotenberg.container
Requires=paperless-database.container
Requires=paperless-redis.container
Requires=tika.container
[Container]
AutoUpdate=registry
ContainerName=paperless
Environment=PAPERLESS_CONSUMER_DELETE_DUPLICATES=1
Environment=PAPERLESS_DBHOST=paperless-database
Environment=PAPERLESS_OCR_LANGUAGE=fra
Environment=PAPERLESS_OCR_USER_ARGS='{"invalidate_digital_signatures": true}'
Environment=PAPERLESS_REDIS=redis://paperless-redis:6379
Environment=PAPERLESS_TASK_WORKERS=2
Environment=PAPERLESS_TIKA_ENABLED=1
Environment=PAPERLESS_TIKA_GOTENBERG_ENDPOINT=http://gotenberg:3000
Environment=PAPERLESS_TIKA_ENDPOINT=http://tika:9998
Environment=PAPERLESS_TIME_ZONE=Europe/Zurich
Environment=PAPERLESS_URL=https://paperless.gtache.ch
Environment=TZ=Europe/Zurich
Environment=USERMAP_GID=1020
Environment=USERMAP_UID=1020
Image=ghcr.io/paperless-ngx/paperless-ngx:latest
Pod=paperless.pod
Secret=paperless-secret-key,type=env,target=PAPERLESS_SECRET_KEY
StartWithPod=true
Timezone=Europe/Zurich
Volume=paperless-data.volume:/usr/src/paperless/data
Volume=paperless-media.volume:/usr/src/paperless/media
Volume=paperless-export.volume:/usr/src/paperless/export
Volume=paperless-consume.volume:/usr/src/paperless/consume
[Service]
Restart=always
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,3 @@
[Pod]
PodName=paperless
PublishPort=9010:8000

View File

@@ -0,0 +1,17 @@
[Unit]
Description=Tika container for Paperless
[Container]
AutoUpdate=registry
ContainerName=tika
Environment=TZ=Europe/Zurich
Image=docker.io/apache/tika:latest
Pod=paperless.pod
StartWithPod=true
Timezone=Europe/Zurich
[Service]
Restart=always
[Install]
WantedBy=default.target