The backend has no health check endpoint and docker-compose has no startup ordering between services. The frontend can start and make API calls before the backend is ready, causing connection errors on first load.
Adding GET /health to Flask and wiring it into docker-compose with a healthcheck and depends_on condition fixes both problems together. This also unblocks Kubernetes liveness and readiness probes which
currently have nothing to point at.
The backend has no health check endpoint and docker-compose has no startup ordering between services. The frontend can start and make API calls before the backend is ready, causing connection errors on first load.
Adding GET /health to Flask and wiring it into docker-compose with a healthcheck and depends_on condition fixes both problems together. This also unblocks Kubernetes liveness and readiness probes which
currently have nothing to point at.