fix(docker): repair dev stack after observability merge (actuator port + Node 22) #688
Reference in New Issue
Block a user
Delete Branch "fix/dev-docker-actuator-port-and-node22"
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?
Summary
Two independent dev-stack regressions surfaced after the observability work landed on
main. Both breakdocker compose up -d --buildeven though all images build successfully.Backend healthcheck hit the wrong port. Observability moved actuator to a separate management port (
management.server.port: 8081), but the devdocker-compose.ymlhealthcheck still probed:8080/actuator/health→ 404 → backend reported unhealthy →frontend(which hasdepends_on: backend healthy) never started, so compose exits 1.docker-compose.prod.ymlalready used 8081; this aligns dev with it.Frontend image too old for
pdfjs-dist.pdfjs-distresolves to5.7.284, which requires Node>=22.13.0 || >=24. Withengine-strict=truein.npmrc,npm cihard-fails on the Node 20 base image and the dev server crash-loops (also blocks a clean build). CI runs the frontend on Node 22 (Playwright image), so the committed lockfile already assumes 22. Bumped all three Dockerfile stages tonode:22-alpine3.21.Changes
docker-compose.yml— backend healthcheck:8080→:8081frontend/Dockerfile—node:20.19.0-alpine3.21→node:22-alpine3.21(dev, build, production stages)Test plan
{"status":"UP"}on:8081inside the backend container (404 on:8080)docker compose up -d --buildbrings up all services; backend healthy, frontend dev server reachesVITE readyand serves (HTTP 302 → /login)🤖 Generated with Claude Code