Files
ansible/roles/docker/templates/paperlessngx-compose.yml.j2
T
PhilandClaude Opus 5.5 e3d78065ab Track stable tags for Paperless and HeyForm, and let dockcheck update them
Pinned versions never got updates, because dockcheck only notices a new
image under the same tag.

- paperless-ngx: 3.4.1 -> latest (stable only; beta/dev have own tags)
- paperless redis: 7 -> 8-alpine (reads Redis 7 data as-is)
- gotenberg: 8.39.0 -> 8 (9 changed the API Paperless calls)
- tika: 3.3.1.0 -> 3.3.3.0 (no floating 3.x tag; Tika 4 breaks Paperless)
- heyform: v3.0.5 -> latest (only moved by v* release tags)
- add mag37.dockcheck.update to all of the above

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 13:56:47 -07:00

89 lines
2.8 KiB
Django/Jinja

services:
broker:
# Redis 8 reads Redis 7 data files as-is
image: docker.io/library/redis:8-alpine
restart: unless-stopped
labels:
mag37.dockcheck.update: true
volumes:
- redisdata:/data
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:{{ paperless_version }}
restart: unless-stopped
labels:
mag37.dockcheck.update: true
# Stop during backup so the SQLite database in the data volume is consistent
docker-volume-backup.stop-during-backup: true
depends_on:
- broker
- gotenberg
- tika
volumes:
- data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- ./export:/usr/src/paperless/export
- ./consume:/usr/src/paperless/consume
env_file: docker-compose.env
extra_hosts:
- '{{ subdomains.pocketid }}:{{ docker.hairpin_ip }}'
environment:
PAPERLESS_REDIS: redis://broker:6379
PAPERLESS_TIKA_ENABLED: 1
PAPERLESS_TIKA_GOTENBERG_ENDPOINT: http://gotenberg:3000
PAPERLESS_TIKA_ENDPOINT: http://tika:9998
PAPERLESS_OCR_USER_ARGS: '{"invalidate_digital_signatures": true}'
# Caddy. v3's login rate limiting reads the client IP from it.
PAPERLESS_TRUSTED_PROXIES: "{{ docker.hairpin_ip }}"
# v3 accepts duplicates by default; keep rejecting them.
PAPERLESS_CONSUMER_DELETE_DUPLICATES: "true"
gotenberg:
# :8 follows 8.x; 9 changed the API Paperless calls
image: docker.io/gotenberg/gotenberg:8
restart: unless-stopped
labels:
mag37.dockcheck.update: true
# The gotenberg chromium route is used to convert .eml files. We do not
# want to allow external content like tracking pixels or even javascript.
command:
- "gotenberg"
- "--chromium-disable-javascript=true"
- "--chromium-allow-list=file:///tmp/.*"
tika:
# No floating 3.x tag, and Tika 4 doesn't work with Paperless 3: bump by hand
image: docker.io/apache/tika:3.3.3.0
restart: unless-stopped
labels:
mag37.dockcheck.update: true
backup:
image: offen/docker-volume-backup:v2
restart: always
labels:
mag37.dockcheck.update: true
environment:
BACKUP_FILENAME: pngx-backup-%Y-%m-%dT%H-%M-%S.tar.gz
BACKUP_CRON_EXPRESSION: "10 9 * * *"
BACKUP_PRUNING_PREFIX: pngx-
BACKUP_RETENTION_DAYS: 7
AWS_S3_BUCKET_NAME: tsolbackups
AWS_ENDPOINT: s3.us-west-004.backblazeb2.com
AWS_ACCESS_KEY_ID: {{ vault_backup.access_key_id }}
AWS_SECRET_ACCESS_KEY: {{ vault_backup.secret_access_key }}
volumes:
- media:/backup/pngx-app-backup:ro
- data:/backup/pngx-data-backup:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
data:
media:
redisdata:
networks:
default:
external: true
name: {{ docker.network_name }}