# Production-mode override for client demos / PoC runs. # # The base docker-compose.yml runs pfm-web-app via `npm run dev` with the source # directory bind-mounted in, which is what you want for daily parser.ts iteration # (hot reload) but is a single dev-server process - not the concurrency/latency # story you want in front of a client with multiple drivers uploading at once. # # This override drops the dev bind-mount (so the image's own `npm run build` # output isn't shadowed by live source) and runs `npm start` against that build. # # Usage: # docker compose -f docker-compose.yml -f docker-compose.demo.yml up -d --build # # Rebuild before every demo run - this mode does not hot-reload code changes. services: pfm-web-app: command: ["npm", "start"] environment: - PIPELINE_URL=http://paddleocr-pipeline-api-v10:8090/layout-parsing - NODE_ENV=production - PGHOST=paddleocr-db - PGPORT=5432 - PGUSER=postgres - PGPASSWORD=postgres - PGDATABASE=dopfm volumes: !override - ./backend/uploads:/uploads - /var/run/docker.sock:/var/run/docker.sock