Repository navigation
Paperless-NGX On-Demand: Zero-Idle Cloud Architecture with Task-Draining Watchdog (~$2/month on AWS) #14705
plthomasva
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello Paperless-NGX community!
I wanted to share a project I just created and open-sourced that brings an automated, zero-cost-idle architecture to Paperless-NGX on AWS:
🔗 GitHub Repository: https://github.com/plthomasva/paperless-ngx-on-demand
📖 Live Documentation: https://plthomasva.github.io/paperless-ngx-on-demand/
Why build this?
Many personal and home users want the reliability and offsite durability of cloud hosting, but paying for a 24/7 VPS or cloud server for occasional document indexing is overkill.
Existing "serverless" approaches often struggle with Paperless-NGX because it relies on persistent background Celery workers, Redis, Tesseract OCR, and Whoosh full-text search indexing that cannot run cleanly on ephemeral containers without severe cold starts or broken indexing state.
Architecture Highlights:
t4g.medium): Boots in ~45–60 seconds (hardware start + Paperless container/worker initialization). On boot,mount-s3mounts the S3 media library, starts Docker Compose, verifies Paperless health on port 8000, and updates KVS to route traffic directly to the instance./tmp/access.log).LLEN celery == 0)./api/tasks/.tesseract,ocrmypdf) processes running..backupAPI to flush WAL journals and upload consistent database snapshots to S3 before halting.External Setup Requirements:
us-east-1Feedback, suggestions, and architectural reviews from the community are warmly welcome!
All reactions