gadgeteerza

Paperless-ngx Docker-Compose

Jul 29th, 2024 (edited)
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.47 KB | Source Code | 0 0
  1. services:
  2.   broker:
  3.     container_name: paperless-broker
  4.     image: docker.io/library/redis:7
  5.     hostname: paperless-broker
  6.     restart: unless-stopped
  7.     volumes:
  8.       # Left side is physical path on host server
  9.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/redisdata:/data
  10.  
  11.   db:
  12.     container_name: paperless-db
  13.     image: docker.io/library/postgres:16
  14.     hostname: paperless-db
  15.     restart: unless-stopped
  16.     volumes:
  17.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/pgdata:/var/lib/postgresql/data
  18.     environment:
  19.       POSTGRES_DB: paperless
  20.       POSTGRES_USER: paperless
  21.       # Don't change this password as it won't start
  22.       POSTGRES_PASSWORD: paperless
  23.  
  24.   webserver:
  25.     container_name: paperless-ngx
  26.     image: ghcr.io/paperless-ngx/paperless-ngx:latest
  27.     hostname: paperless-ngx
  28.     restart: unless-stopped
  29.     labels:
  30.       com.centurylinklabs.watchtower.enable: true
  31.     depends_on:
  32.       - db
  33.       - broker
  34.     ports:
  35.       - 8010:8000
  36.     volumes:
  37.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/data:/usr/src/paperless/data
  38.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/media:/usr/src/paperless/media
  39.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/export:/usr/src/paperless/export
  40.       - /srv/dev-disk-by-label-HD1/data/appdata/Config/paperless/consume:/usr/src/paperless/consume
  41.     environment:
  42.       PAPERLESS_REDIS: redis://paperless-broker:6379
  43.       PAPERLESS_DBHOST: db
  44. # The UID and GID of the user used to run paperless in the container. Set this
  45. # to your UID and GID on the host so that you have write access to the
  46. # consumption directory.
  47.       USERMAP_UID: 998
  48.       USERMAP_GID: 100
  49. # Additional languages to install for text recognition, separated by a
  50. # whitespace. Note that this is
  51. # different from PAPERLESS_OCR_LANGUAGE (default=eng), which defines the
  52. # language used for OCR.
  53. # The container installs English, German, Italian, Spanish and French by
  54. # default.
  55. # See https://packages.debian.org/search?keywords=tesseract-ocr-&searchon=names&suite=buster
  56. # for available languages.
  57.       #PAPERLESS_OCR_LANGUAGES: tur ces
  58. # Adjust this key if you plan to make paperless available publicly. It should
  59. # be a very long sequence of random characters. You don't need to remember it.
  60.       PAPERLESS_SECRET_KEY: anylongrandomkeyhere
  61. # Use this variable to set a timezone for the Paperless Docker containers. If not specified, defaults to UTC.
  62.       PAPERLESS_TIME_ZONE: Africa/Johannesburg
  63. # The default language to use for OCR. Set this to the language most of your
  64. # documents are written in.
  65.       PAPERLESS_OCR_LANGUAGE: eng
  66.       PAPERLESS_TIKA_ENABLED: 1
  67.       PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
  68.       PAPERLESS_TIKA_ENDPOINT: http://tika:9998
  69.      
  70.   gotenberg:
  71.     image: docker.io/gotenberg/gotenberg:8.7
  72.     container_name: gotenberg
  73.     hostname: gotenberg
  74.     restart: unless-stopped
  75.     ports:
  76.       - 3000:3000
  77.     # The gotenberg chromium route is used to convert .eml files. We do not
  78.     # want to allow external content like tracking pixels or even javascript.
  79.     command:
  80.       - gotenberg
  81.       - --chromium-disable-javascript=true
  82.       - --chromium-allow-list=file:///tmp/.*
  83.       - --api-timeout=300s
  84.  
  85.   tika:
  86.     image: docker.io/apache/tika:latest
  87.     container_name: tika
  88.     hostname: tika
  89.     labels:
  90.       com.centurylinklabs.watchtower.enable: true
  91.     restart: unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment