paperless-ngx/variables.yml

124 lines
3.1 KiB
YAML
Raw 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
# 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 policies to add to the containers
vault:
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
# Parameters for the postgres database
postgres:
host: 127.0.0.1
port: 5432
database: '[[ .instance ]]'
user: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.username }}{{ end }}'
password: '{{ with secret "[[ .vault.prefix ]]database/creds/[[ .instance ]]" }}{{ .Data.password }}{{ end }}'
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:
2023-12-21 23:11:56 +01:00
PAPERLESS_SECRET_KEY: '{{ with secret "[[ .vault.prefix ]]kv/service/[[ .instance ]]" }}{{ .Data.data.secret_key }}{{ end }}'
2023-11-20 00:21:06 +01:00
PAPERLESS_CORS_ALLOWED_HOSTS: '[[ .paperless.webserver.public_url ]]'
PAPERLESS_URL: '[[ .paperless.webserver.public_url ]]'
PAPERLESS_CONVERT_TMPDIR: /alloc/data
PAPERLESS_USE_X_FORWARD_HOST: true
PAPERLESS_PROXY_SSL_HEADER: "'[\"HTTP_X_FORWARDED_PROTO\", \"https\"]'"
PAPERLESS_ENABLE_COMPRESSION: false
PAPERLESS_TRUSTED_PROXIES: 127.0.0.1
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-01-18 10:22:33 +01:00
image: '[[ .docker.repo ]]paperless-ngx:2.3.3-2'
2023-11-20 00:21:06 +01:00
# Env vars to set in the container
env: {}
# Resource allocation
resources:
cpu: 300
2023-11-30 21:38:11 +01:00
memory: 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
traefik:
enabled: true
# 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
memory: 150
# 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
# 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