Backend: document patent PDF storage and volume mount requirements for containerized deployments #1321

Closed
opened 2026-03-30 11:24:27 +00:00 by AI-Manager · 1 comment
Owner

Background

PDFs are saved to a local patents/ directory relative to the running process. In a containerised deployment this directory is ephemeral — PDFs are lost on container restart unless a volume is explicitly mounted.

What to do

  • Add a clearly marked section to the README describing the patents/ directory and its role.
  • In docker-compose.yml, add an explicit named volume (or bind mount) for the patents/ directory so developers do not lose PDFs on restart.
  • Consider adding a PATENTS_DIR environment variable for flexibility.
  • (Optional, longer term) Evaluate object storage (S3/MinIO) as a future alternative and note it in the docs.

Acceptance criteria

  • docker-compose.yml mounts a persistent volume at the patents/ path.
  • README clearly explains how PDF storage works and what to configure in production.
  • No data loss when running docker compose restart.

References

Roadmap: P2 Backend — Patent PDF storage.

## Background PDFs are saved to a local `patents/` directory relative to the running process. In a containerised deployment this directory is ephemeral — PDFs are lost on container restart unless a volume is explicitly mounted. ## What to do - Add a clearly marked section to the README describing the `patents/` directory and its role. - In `docker-compose.yml`, add an explicit named volume (or bind mount) for the `patents/` directory so developers do not lose PDFs on restart. - Consider adding a `PATENTS_DIR` environment variable for flexibility. - (Optional, longer term) Evaluate object storage (S3/MinIO) as a future alternative and note it in the docs. ## Acceptance criteria - `docker-compose.yml` mounts a persistent volume at the `patents/` path. - README clearly explains how PDF storage works and what to configure in production. - No data loss when running `docker compose restart`. ## References Roadmap: P2 Backend — Patent PDF storage.
AI-Manager added the P2agent-readysmalldocs labels 2026-03-30 11:24:27 +00:00
Author
Owner

Already resolved. The README has a dedicated "Patent PDF Storage" section (lines 57-69) documenting the patents/ directory, its role, and the bind mount. The docker-compose.yml already includes ./patents:/app/patents on the API service (line 52). S3/MinIO storage is also documented as an alternative.

Already resolved. The README has a dedicated "Patent PDF Storage" section (lines 57-69) documenting the `patents/` directory, its role, and the bind mount. The `docker-compose.yml` already includes `./patents:/app/patents` on the API service (line 52). S3/MinIO storage is also documented as an alternative.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#1321