- Removed deprecated functions related to document parsing and blob storage in blobstore.ts. - Introduced new PDF rendering logic in pdf-preview-renderer.ts and pdf-preview-pdfjs-runtime.ts. - Updated previews-render.ts to utilize the new PDF rendering functions. - Refactored user-whisper-align-job.ts to use the compute-worker client for alignment requests. - Enhanced artifact.ts and operation.ts to validate parsed PDF artifacts and resolve current PDF parses. - Updated snapshot.ts to align with new worker operation types. - Adjusted runtime-config.ts to check for compute-worker availability. - Modified types in parsed-pdf.ts and tts.ts to reflect changes in the compute-worker protocol. - Added unit tests for PDF artifact validation and compute-worker client contract. - Removed obsolete pdf-op-key.vitest.spec.ts test file.
44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
services:
|
|
nats:
|
|
image: nats:2.14-alpine
|
|
container_name: openreader-compute-nats
|
|
command: ["-js", "-sd", "/data"]
|
|
ports:
|
|
- "4222:4222"
|
|
- "8222:8222"
|
|
volumes:
|
|
- nats-data:/data
|
|
|
|
compute-worker:
|
|
build:
|
|
context: ..
|
|
dockerfile: compute-worker/Dockerfile
|
|
container_name: openreader-compute-worker
|
|
depends_on:
|
|
- nats
|
|
env_file:
|
|
- path: ./.env
|
|
required: false
|
|
environment:
|
|
NATS_URL: ${NATS_URL:-nats://nats:4222}
|
|
COMPUTE_WORKER_HOST: ${COMPUTE_WORKER_HOST:-0.0.0.0}
|
|
PORT: ${PORT:-8081}
|
|
COMPUTE_WORKER_TOKEN: ${COMPUTE_WORKER_TOKEN:-local-compute-token}
|
|
S3_PREFIX: ${S3_PREFIX:-openreader}
|
|
COMPUTE_PREWARM_MODELS: ${COMPUTE_PREWARM_MODELS:-false}
|
|
ports:
|
|
- "8081:8081"
|
|
develop:
|
|
watch:
|
|
- action: sync+restart
|
|
path: .
|
|
target: /workspace
|
|
- action: rebuild
|
|
path: ./package.json
|
|
- action: rebuild
|
|
path: ../pnpm-lock.yaml
|
|
- action: rebuild
|
|
path: ../pnpm-workspace.yaml
|
|
|
|
volumes:
|
|
nats-data:
|