- internal/dashboard: classify items into overdue / due today / due this week /
no due date / messages; render the plain-text brief (FR-6, FR-7, FR-9).
- internal/store: ItemsForChild, ItemByID, DeleteItemByID, ScanSummaryForChild
and the stored-brief CRUD helpers (FR-10).
- internal/web: routes /?child=, /items/{id}, POST /items/{id}/delete,
POST /summaries/build, POST /summaries/{id}/delete, plus a per-child scan
banner (FR-12) and a phone-first server-rendered template.
- Calendar events are never "overdue": a past lesson is history, not work.
- cmd/school brief build|list; scripts/screenshot-phase5.mjs for phone evidence.
- Tests: bucket classification, stored-brief round-trip, and HTTP routes
including the NO SCAN / SCAN FAILED / healthy banner behaviour.
Co-Authored-By: Paperclip <noreply@paperclip.ing>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
# Compass / NHS — its own image, own container, own port (8792).
|
|
# Deploy on .13: cd /home/sam/paseo/projects/compass_teams_nhs && docker compose up -d --build
|
|
#
|
|
# Secrets live in environment.d/school-service.env (gitignored), never here.
|
|
|
|
name: compass-teams-nhs
|
|
|
|
services:
|
|
school:
|
|
build:
|
|
context: .
|
|
args:
|
|
VERSION: "0.3.0-phase5"
|
|
image: compass-teams-nhs/school:0.3.0-phase5
|
|
container_name: compass-teams-nhs
|
|
restart: unless-stopped
|
|
env_file:
|
|
- environment.d/school-service.env
|
|
ports:
|
|
- "8792:8792"
|
|
volumes:
|
|
- compass-teams-nhs-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8792/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
# .13 has every default Docker address pool subnetted out (many projects),
|
|
# so this single-container service uses the host's default bridge and does
|
|
# not create a project network. The port is published above.
|
|
network_mode: bridge
|
|
|
|
volumes:
|
|
compass-teams-nhs-data:
|