forked from 0xWheatyz/SPARC
Backend: document patent PDF storage and volume mount requirements for containerized deployments #1321
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?
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
patents/directory and its role.docker-compose.yml, add an explicit named volume (or bind mount) for thepatents/directory so developers do not lose PDFs on restart.PATENTS_DIRenvironment variable for flexibility.Acceptance criteria
docker-compose.ymlmounts a persistent volume at thepatents/path.docker compose restart.References
Roadmap: P2 Backend — Patent PDF storage.
Already resolved. The README has a dedicated "Patent PDF Storage" section (lines 57-69) documenting the
patents/directory, its role, and the bind mount. Thedocker-compose.ymlalready includes./patents:/app/patentson the API service (line 52). S3/MinIO storage is also documented as an alternative.