This repository has been archived on 2025-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
swarm-production/stacks/apps/paperless/stack.yml
John c5b0c67ca7 Refactor Docker Swarm stack configurations for local deployment
Updated multiple stack files to use local hostnames instead of external domains, simplified Traefik configuration, and reorganized Authentik service location. Changes improve local development setup and reduce complexity.

Key changes:
- Simplified .gitignore to exclude entire conf/ directory
- Updated Traefik labels across services to use .swarm.home domains
- Removed Cloudflare cert resolver references for local TLS
- Moved Authentik from apps/ to core/ directory structure
- Removed Traefik labels from n8n and paperless services
- Updated Traefik stack to use simplified port bindings
- Added timezone environment variable to adminer and outline

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 01:38:48 +00:00

83 lines
2.4 KiB
YAML

services:
paperless_redis:
image: redis:alpine
networks:
- homelab
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
deploy:
replicas: 1
resources:
limits:
memory: 512M
reservations:
memory: 128M
paperless_webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:latest
volumes:
- /home/doc/projects/swarm-data/appdata/paperless/data:/usr/src/paperless/data
- /home/doc/projects/swarm-data/appdata/paperless/media:/usr/src/paperless/media
- /home/doc/projects/swarm-data/appdata/paperless/export:/usr/src/paperless/export
- /home/doc/projects/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
- PAPERLESS_CSRF_TRUSTED_ORIGINS=https://docs.frostlabs.me
- PAPERLESS_REDIS=redis://paperless_redis:6379
- PAPERLESS_DBHOST=10.0.4.10
- 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
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
deploy:
replicas: 1
resources:
limits:
memory: 2G
cpus: '2.0'
reservations:
memory: 1G
depends_on:
- paperless_redis
networks:
homelab:
external: true
secrets:
paperless-admin-pass:
external: true
paperless-secret-key:
external: true
postgres-master:
external: true