Paperless-ngx ใช้ดูแลจัดการเอกสาร
เป็นแอพที่ไว้ช่วยจัดการเอกสารต่าง ๆ ให้เป็นระเบียบ รองรับ multi user ในการเข้ามาใช้ร่วมกัน แต่ไม่มีของใครของมันนะ โดยแอพเองมี OCR ข้อความในเอกสารได้หลายภาษา รวมภาษาไทยด้วย ช่วยให้ค้นหาสิ่งที่ต้องการได้ง่ายขึ้น คือมีรายละเอียดอื่น ๆ เยอะมากลองไปงมดูได้ใน https://github.com/paperless-ngx/paperless-ngx หรือลองดู demo จากในนั้นก็ได้
อย่าคาดหวังมากกับ OCR ภาษาไทย จากที่ลองคือแค่พอใช้ได้)จากที่ลองคือแค่พอใช้ได้
ไฟล์ docker-compose ด้านล่างนี้ ผ่านการลองถูกลองผิดมาเยอะพอสมควร และได้ทำการรวม env ที่น่าจะสำคัญทำมาให้หมดแล้ว รวมถึงวิธีเรียงไม่ต้องสร้างไฟล์แยกแบบตัวติดตั้งต้นฉบับ และได้แก้ระบบ folder เรียงไฟล์เรียงไฟล์ให้ใหม่ เผื่อแอพนี้ระเบิดจะได้ค้นไฟล์ง่าย ๆ ในภายหลัง
ขั้นตอนติดตั้ง
save code ด้านล่างไปทำไฟล์ docker-compose.yaml
# docker-compose file for running paperless from the docker container registry.
# This file contains everything paperless needs to run.
# Paperless supports amd64, arm and arm64 hardware.
# All compose files of paperless configure paperless in the following way:
#
# - Paperless is (re)started on system boot, if it was running before shutdown.
# - Docker volumes for storing data are managed by Docker.
# - Folders for importing and exporting files are created in the same directory
# as this file and mounted to the correct folders inside the container.
# - Paperless listens on port 8000.
#
# SQLite is used as the database. The SQLite file is stored in the data volume.
#
# In addition to that, this docker-compose file adds the following optional
# configurations:
#
# - Apache Tika and Gotenberg servers are started with paperless and paperless
# is configured to use these services. These provide support for consuming
# Office documents (Word, Excel, Power Point and their LibreOffice counter-
# parts.
#
# For more extensive installation and update instructions, refer to the
# documentation.
version: "3.4"
services:
broker:
image: redis:6.0
restart: always
volumes:
- /volume1/docker/paperless-redis:/data # <-- Update
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
restart: always
depends_on:
- broker
- gotenberg
- tika
ports:
- 8010:8000 # <-- Update
healthcheck:
test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8010"] # <-- Update
interval: 30s
timeout: 10s
retries: 5
volumes:
- /volume1/docker/paperless-ngx/data:/usr/src/paperless/data # <-- Update
- /volume1/docker/paperless-ngx/media:/usr/src/paperless/media # <-- Update
- /volume1/docker/paperless-ngx/export:/usr/src/paperless/export # <-- Update
- /volume1/docker/paperless-ngx/consume:/usr/src/paperless/consume # <-- Update
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
USERMAP_UID: 1035 # <-- Update
USERMAP_GID: 100 # <-- Update
PAPERLESS_SECRET_KEY: fdsfdsfdszcbvcngikh # <-- Update
PAPERLESS_URL: https://paper.example.com # <-- Update
PAPERLESS_TIME_ZONE: Asia/Bangkok
PAPERLESS_OCR_LANGUAGES: tha
PAPERLESS_OCR_LANGUAGE: tha+eng
PAPERLESS_ADMIN_USER: admin # <-- Update
PAPERLESS_ADMIN_PASSWORD: admin # <-- Update
PAPERLESS_FILENAME_FORMAT: "{correspondent}/{created_year}-{created_month}_{correspondent}-{title}"
gotenberg:
image: gotenberg/gotenberg:7.4
restart: always
command:
- "gotenberg"
- "--chromium-disable-routes=true"
tika:
image: ghcr.io/paperless-ngx/tika:latest
restart: always
volumes:
data:
media:
redisdata:
ใช้ notepad หรืออะไรก็ได้เปิดไฟล์ docker-compose.yaml ขึ้นมา เน้นดูตรงส่วนของ comment ในไฟล์ แก้ให้ตรงกับที่ใช้
https://paperless-ngx.readthedocs.io/en/latest/configuration.html
https://mariushosting.com/how-to-install-paperless-ngx-on-your-synology-nas/
