forked from 0xWheatyz/SPARC
Document patent PDF volume mount requirement for containerized deployments #859
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
patents_datatodocker-compose.ymlmounted at the container path where PDFs are stored.README.mdwith a section explaining thepatents/volume and how to configure it.PATENT_STORAGE_BACKENDenvironment variable stub and a note in the roadmap that S3/MinIO integration is a future option.Acceptance criteria
docker-compose.ymlmounts a persistent volume for thepatents/directory.docker compose restart.Resolved in codebase. All acceptance criteria are met:
./patents:/app/patentsas a bind mount on the api service (line 52), so PDFs persist across restarts.SPARC/storage.pyimplements a fullSTORAGE_BACKENDenv var (localors3) withS3StorageBackendfor MinIO/AWS S3, anddocker-compose.ymlincludes an optional MinIO service under thes3profile.Closing as implemented.