Files
school_compare/nextjs-app/docker-compose.yml
Tudor 1c49a135c4
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 47s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m11s
Build and Push Docker Images / Build Integrator (push) Successful in 58s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
feat(ofsted): add Report Card system support alongside legacy OEIF grades
Ofsted replaced single overall grades with Report Cards from Nov 2025.
Both systems are retained during the transition period.

- DB: new framework + 9 RC columns on ofsted_inspections (schema v4)
- Integrator: auto-detect OEIF vs Report Card from CSV column headers;
  parse 5-level RC grades and safeguarding met/not-met
- API: expose all new fields in the ofsted response dict
- Frontend: branch on framework='ReportCard' to show safeguarding badge
  + 8-category grid; fall back to legacy OEIF layout otherwise;
  always show inspection date in both layouts
- CSS: rcGrade1–5 and safeguardingMet/NotMet classes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 13:03:04 +00:00

40 lines
1000 B
YAML

services:
nextjs:
build:
context: .
dockerfile: Dockerfile
container_name: schoolcompare-nextjs
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://backend:8000/api}
- FASTAPI_URL=${FASTAPI_URL:-http://backend:8000/api}
depends_on:
- backend
networks:
- schoolcompare-network
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000/', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
backend:
image: schoolcompare-backend:latest
container_name: schoolcompare-backend
ports:
- "8000:8000"
environment:
- DATABASE_URL=${DATABASE_URL}
- PYTHONUNBUFFERED=1
networks:
- schoolcompare-network
restart: unless-stopped
networks:
schoolcompare-network:
driver: bridge