learning_ai_notes/backend
saravanakumardb1 e5221afb87 feat(deploy): backend Docker corp-proxy support + local compose override
Two changes that make 'docker compose up' actually work on this host
(and on any corporate network with TLS interception of npmjs.org):

1. backend/Dockerfile gains the same NODE_TLS_REJECT_UNAUTHORIZED=0 +
   NPM_CONFIG_STRICT_SSL=false envs and 'npm config set strict-ssl false'
   step that web/Dockerfile already had. Without this, the 'npm install
   -g pnpm@10.6.5' step failed with UNABLE_TO_GET_ISSUER_CERT_LOCALLY
   on corp networks. Build-time-only; production runtime image is
   unaffected.

2. docker-compose.override.yml (new) is picked up automatically by
   'docker compose up' and:
   - remaps the web container's host port from 3000 to 3050 (port 3000
     on this host is held by Grafana). Uses 'ports: !override' so the
     base port mapping is replaced rather than appended.
   - points the backend at the sibling platform-service (4003),
     extraction-service (4005), and mcp-server (4007) running on the
     host network via host.docker.internal.
   - sets DB_PROVIDER=memory and a 32+ char JWT_SECRET so the backend
     starts in dev mode without Cosmos credentials.

Verified live on this host:
  docker compose up -d → both notelett-backend (healthy) and
  notelett-web running.
  curl http://localhost:4016/health → {status:ok,service:notelett-backend}
  curl http://localhost:3050/dashboard → HTTP 200, '<title>NoteLett</title>'
2026-05-23 01:04:18 -07:00
..
src feat(ci): Cosmos emulator smoke job exercises partition-key paths 2026-05-23 00:25:24 -07:00
.env.example feat(backend): add domain event bus and wire note CRUD events 2026-04-13 10:00:12 -07:00
Dockerfile feat(deploy): backend Docker corp-proxy support + local compose override 2026-05-23 01:04:18 -07:00
eslint.config.js chore(backend): add eslint config and lint script 2026-03-26 23:03:09 -07:00
package.json feat(ci): Cosmos emulator smoke job exercises partition-key paths 2026-05-23 00:25:24 -07:00
tsconfig.json feat(docker): migrate NoteLett to Gitea registry-backed Docker pattern 2026-03-23 20:11:12 -07:00
vitest.config.ts feat(ci): Cosmos emulator smoke job exercises partition-key paths 2026-05-23 00:25:24 -07:00
vitest.cosmos.config.ts feat(ci): Cosmos emulator smoke job exercises partition-key paths 2026-05-23 00:25:24 -07:00