NestJS worker process for Doclane PDF jobs. The app connects to Redis/BullMQ queues and S3-compatible object storage; it does not connect directly to the database.
- Node.js 22
- pnpm
- Redis
- S3-compatible object storage
- PDF/OCR command line tools:
qpdffix-qdfpdfinfopdftotextpdftoppmtesseractocrmypdf
Copy .env.example to .env and adjust the values for your Redis and S3-compatible storage.
cp .env.example .envApplication code reads environment values through config aliases such as redis.host, s3.endpoint, and pdfProcessing.ocr.enabled.
pnpm install
pnpm start:devBuild the worker image:
docker build -t doclane-worker .The worker container includes the PDF and OCR binaries needed by the configured processing pipeline.
After worker changes, run:
pnpm build
pnpm lint
pnpm test