- Promoted p1, p2, p3 from worker to manager nodes for 4-node quorum - Removed unnecessary hostname constraints from service configs - Only traefik and portainer remain pinned to p0 - Services now auto-balance across all nodes via GlusterFS shared storage - Updated README with cluster overview and distribution strategy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
services:
|
|
paperless_redis:
|
|
image: redis:alpine
|
|
networks:
|
|
- homelab
|
|
deploy:
|
|
replicas: 1
|
|
|
|
paperless_webserver:
|
|
image: ghcr.io/paperless-ngx/paperless-ngx:latest
|
|
ports:
|
|
- 8000:8000
|
|
volumes:
|
|
- /home/doc/swarm-data/appdata/paperless/data:/usr/src/paperless/data
|
|
- /home/doc/swarm-data/appdata/paperless/media:/usr/src/paperless/media
|
|
- /home/doc/swarm-data/appdata/paperless/export:/usr/src/paperless/export
|
|
- /home/doc/swarm-data/appdata/paperless/consume:/usr/src/paperless/consume
|
|
secrets:
|
|
- postgres-master
|
|
- paperless-secret-key
|
|
- paperless-admin-pass
|
|
environment:
|
|
- PAPERLESS_DBPASS_FILE=/run/secrets/postgres-master
|
|
- PAPERLESS_SECRET_KEY_FILE=/run/secrets/paperless-secret-key
|
|
- PAPERLESS_ADMIN_PASSWORD_FILE=/run/secrets/paperless-admin-pass
|
|
- PAPERLESS_URLS=https://docs.frostlabs.me
|
|
- PAPERLESS_ALLOWED_HOSTS=docs.frostlabs.me,docs.frostlabs.home
|
|
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me,https://docs.frostlabs.home
|
|
- PAPERLESS_REDIS=redis://paperless_redis:6379
|
|
- PAPERLESS_DBHOST=10.0.4.10 # Fixed: removed http://
|
|
- PAPERLESS_DBPORT=5432
|
|
- PAPERLESS_DBNAME=paperless
|
|
- PAPERLESS_DBUSER=admin
|
|
- PAPERLESS_TIME_ZONE=America/New_York
|
|
- PAPERLESS_OCR_LANGUAGE=eng
|
|
- PAPERLESS_CONSUMER_POLLING=5
|
|
- PAPERLESS_CONSUMER_DELETE_DUPLICATES=true
|
|
- PAPERLESS_CONSUMER_RECURSIVE=true
|
|
- PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS=false
|
|
- PAPERLESS_CONSUMER_IGNORE_PATTERNS=[".DS_Store","._*",".stfolder",".stversions","Thumbs.db"]
|
|
- PAPERLESS_ENABLE_CLASSIFIER=true
|
|
- PAPERLESS_ADMIN_USER=admin
|
|
- PAPERLESS_ADMIN_MAIL=john.allisonwin@outlook.com
|
|
networks:
|
|
- homelab
|
|
deploy:
|
|
replicas: 1
|
|
depends_on: # Fixed: removed postgres dependency
|
|
- paperless_redis
|
|
|
|
networks:
|
|
homelab:
|
|
external: true
|
|
|
|
secrets:
|
|
paperless-admin-pass:
|
|
external: true
|
|
paperless-secret-key:
|
|
external: true
|
|
postgres-master:
|
|
external: true |