From d7d0ada962a23399122de78821f9d8fcf29b26c1 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 12 Feb 2023 12:37:06 -0800 Subject: [PATCH] Add Office support with Tika and Gotenberg --- homelab/server/config/paperless/docker-compose.yml | 14 ++++++++++++++ homelab/server/config/paperless/paperless.env | 3 +++ 2 files changed, 17 insertions(+) diff --git a/homelab/server/config/paperless/docker-compose.yml b/homelab/server/config/paperless/docker-compose.yml index a3a1bb24..6455e236 100644 --- a/homelab/server/config/paperless/docker-compose.yml +++ b/homelab/server/config/paperless/docker-compose.yml @@ -45,6 +45,20 @@ services: - traefik.http.routers.paperless.rule=Host(`paperless.jafner.net`) - traefik.http.routers.paperless.tls.certresolver=lets-encrypt + tika: + image: ghcr.io/paperless-ngx/tika:latest + networks: + - paperless + + gotenberg: + image: docker.io/gotenberg/gotenberg:7.8 + networks: + - paperless + command: + - "gotenberg" + - "--chromium-disable-javascript=true" + - "--chromium-allow-list=file:///tmp/.*" + volumes: mariadb: redis: diff --git a/homelab/server/config/paperless/paperless.env b/homelab/server/config/paperless/paperless.env index 3442205b..b9069b70 100644 --- a/homelab/server/config/paperless/paperless.env +++ b/homelab/server/config/paperless/paperless.env @@ -9,3 +9,6 @@ PAPERLESS_OCR_LANGUAGES=tur ces PAPERLESS_URL=https://paperless.jafner.net PAPERLESS_TIME_ZONE=America/Los_Angeles PAPERLESS_OCR_LANGUAGE=eng +PAPERLESS_TIKA_ENABLED=1 +PAPERLESS_TIKA_GOTENBERG_ENDPOINT=http://gotenberg:3000 +PAPERLESS_TIKA_ENDPOINT=http://tika:9998 \ No newline at end of file