version: "3.4"
services:
broker:
image: library/redis:7
restart: unless-stopped
volumes:
- /data/backup/paperless/redisdata:/data
db:
image: library/postgres:15
restart: unless-stopped
volumes:
- /data/backup/paperless/pgdata:/var/lib/postgresql/data
environment:
POSTGRES_DB: paperless
POSTGRES_USER: paperless
POSTGRES_PASSWORD: paperless
webserver:
image: paperlessngx/paperless-ngx:latest
container_name: paperless
restart: unless-stopped
depends_on:
- db
- broker
- gotenberg
- tika
ports:
- "8000:8000" # change it if you like
healthcheck:
test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
volumes:
- /data/backup/paperless/data:/usr/src/paperless/data
- /data/backup/paperless/media:/usr/src/paperless/media
- /data/backup/paperless/export:/usr/src/paperless/export
- /data/backup/paperless/consume:/usr/src/paperless/consume
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_DBHOST: db
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
PAPERLESS_OCR_LANGUAGES: chi-sim chi-tra
PAPERLESS_OCR_LANGUAGE: eng+chi_sim
PAPERLESS_OCR_USER_ARGS: '{"invalidate_digital_signatures": true}'
USERMAP_UID: 1000
USERMAP_GID: 1000
PAPERLESS_TIME_ZONE: Asia/Shanghai
dns:
- 114.114.114.114
- 8.8.4.4
gotenberg:
image: gotenberg/gotenberg:7.10
restart: unless-stopped
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
image: apache/tika:latest
restart: unless-stopped
paperless脚本
于 2024-11-21 21:45:01 首次发布
1558

被折叠的 条评论
为什么被折叠?



