paperless-ngx/variables.yml

118 lines
2.7 KiB
YAML
Raw Permalink Normal View History

2023-11-20 00:21:06 +01:00
---
2023-12-21 23:11:56 +01:00
# Name of the instance (job and service name)
instance: paperless
2023-11-20 00:21:06 +01:00
2023-12-21 23:11:56 +01:00
paperless:
2023-11-20 00:21:06 +01:00
2024-01-24 23:24:36 +01:00
# Version to use
2024-05-15 23:47:35 +02:00
version: 2.8.6
2024-01-24 23:24:36 +01:00
2023-11-20 00:21:06 +01:00
# Connect to the postgres service through the mesh
consul:
connect:
upstreams:
- destination_name: postgres[[ .consul.suffix ]]
local_bind_port: 5432
2024-01-12 21:52:20 +01:00
vault:
2024-01-31 15:20:01 +01:00
# Vault policies to add to the containers
2024-01-12 21:52:20 +01:00
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
2024-01-31 15:20:01 +01:00
# Random secrets to generate and store in vault KV
rand_secrets:
fields:
- secret_key
2024-01-12 21:52:20 +01:00
2023-11-20 00:21:06 +01:00
# Env var to set in the containers
# The ones here will be inherited by all containers
env:
2024-01-31 15:20:01 +01:00
PAPERLESS_SECRET_KEY: '{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}{{ .Data.data.secret_key }}{{ end }}'
2023-11-20 00:21:06 +01:00
PAPERLESS_CORS_ALLOWED_HOSTS: '[[ .paperless.webserver.public_url ]]'
2023-12-01 10:15:43 +01:00
wait_for:
2024-01-11 15:51:06 +01:00
- service: master.postgres[[ .consul.suffix ]]
2023-12-01 10:15:43 +01:00
2023-11-20 00:21:06 +01:00
# This is the main task
webserver:
# The Docker image to use
2024-05-07 15:13:26 +02:00
image: '[[ .docker.repo ]]paperless-ngx:[[ .paperless.version ]]-1'
2023-11-20 00:21:06 +01:00
# Env vars to set in the container
env: {}
# Resource allocation
resources:
cpu: 300
2024-05-13 23:29:02 +02:00
memory: 384
memory_max: 512
2023-11-20 00:21:06 +01:00
# The URL where BounCA will be available to users
public_url: https://paperless.example.org
# Traefik settings
2024-01-29 09:14:42 +01:00
traefik: {}
2023-11-20 00:21:06 +01:00
# The consumer will watch a folder (/input, where a volume is mounted) and
# import any files found.
consumer:
# You can disable the consumer if you do not use it, it'll save some resources
enabled: true
# The Docker image to use
image: '[[ .paperless.webserver.image ]]'
# Env vars to set in the container
env: {}
# Resource allocation
resources:
cpu: 100
2024-01-19 10:16:07 +01:00
memory: 256
2023-11-20 00:21:06 +01:00
# Task scheduler
scheduler:
# The Docker image to use
image: '[[ .paperless.webserver.image ]]'
# Env vars to set in the container
env: {}
# Resource allocation
resources:
cpu: 100
memory: 200
# The worker doing the document processing
task_queue:
# The Docker image to use
image: '[[ .paperless.webserver.image ]]'
# Env vars to set in the container
env: {}
# Resource allocation
resources:
cpu: 500
memory: 384
memory_max: 512
2023-11-20 00:21:06 +01:00
# Volumes for data persistance and exchange
volumes:
# This is the main volume where paperless keeps your documents
data:
type: csi
source: paperless-data
# This is a volume paperless will watch (with the consumer task) and
# any document found in it will be imported. If the consumer is disabled
# you can omit this volumes as it'll not be added to the job
input:
type: csi
source: paperless-input