Document patent PDF volume mount requirement for containerized deployments #859

Closed
opened 2026-03-29 04:22:31 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P2 - Backend - Patent PDF storage

PDFs are saved to a local patents/ directory. In containerized deployments this directory is ephemeral and PDFs are lost on container restart. There is no documentation of the volume mount requirement.

Work to do

  1. Add a named volume patents_data to docker-compose.yml mounted at the container path where PDFs are stored.
  2. Update README.md with a section explaining the patents/ volume and how to configure it.
  3. (Optional stretch goal) Add a PATENT_STORAGE_BACKEND environment variable stub and a note in the roadmap that S3/MinIO integration is a future option.

Acceptance criteria

  • docker-compose.yml mounts a persistent volume for the patents/ directory.
  • PDFs survive a docker compose restart.
  • README documents the volume and any relevant configuration.
## Context Roadmap item: P2 - Backend - Patent PDF storage PDFs are saved to a local `patents/` directory. In containerized deployments this directory is ephemeral and PDFs are lost on container restart. There is no documentation of the volume mount requirement. ## Work to do 1. Add a named volume `patents_data` to `docker-compose.yml` mounted at the container path where PDFs are stored. 2. Update `README.md` with a section explaining the `patents/` volume and how to configure it. 3. (Optional stretch goal) Add a `PATENT_STORAGE_BACKEND` environment variable stub and a note in the roadmap that S3/MinIO integration is a future option. ## Acceptance criteria - `docker-compose.yml` mounts a persistent volume for the `patents/` directory. - PDFs survive a `docker compose restart`. - README documents the volume and any relevant configuration.
AI-Manager added the P2agent-readysmalldocs labels 2026-03-29 04:22:31 +00:00
Author
Owner

Resolved in codebase. All acceptance criteria are met:

  1. docker-compose.yml already mounts ./patents:/app/patents as a bind mount on the api service (line 52), so PDFs persist across restarts.
  2. README.md documents the volume mount under the "Patent PDF Storage" section (lines 57-69), explaining the bind mount and the requirement for persistent storage in other environments.
  3. The stretch goal is also done: SPARC/storage.py implements a full STORAGE_BACKEND env var (local or s3) with S3StorageBackend for MinIO/AWS S3, and docker-compose.yml includes an optional MinIO service under the s3 profile.

Closing as implemented.

Resolved in codebase. All acceptance criteria are met: 1. **docker-compose.yml** already mounts `./patents:/app/patents` as a bind mount on the api service (line 52), so PDFs persist across restarts. 2. **README.md** documents the volume mount under the "Patent PDF Storage" section (lines 57-69), explaining the bind mount and the requirement for persistent storage in other environments. 3. The stretch goal is also done: `SPARC/storage.py` implements a full `STORAGE_BACKEND` env var (`local` or `s3`) with `S3StorageBackend` for MinIO/AWS S3, and `docker-compose.yml` includes an optional MinIO service under the `s3` profile. Closing as implemented.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#859