Fonts: - Added Google Fonts: Inter (UI), Playfair Display (headings), Source Serif 4 (reading) - Default theme now uses Inter — clean, modern, professional - Warm Brown theme: body text uses Source Serif 4 (screen-optimized modern serif, not old-fashioned Georgia), question text uses Source Serif 4 for readability, headings use Playfair Display (elegant, editorial), UI elements use Inter - Result: literary feel without looking like a Word document Mobile Navbar (hamburger menu): - Desktop: horizontal nav unchanged - Mobile: logo + right-side controls (jobs badge + hamburger icon) - Hamburger animates to X when open, full-width dropdown below navbar - Active route highlighted; auto-closes on navigation Jobs indicator: - Amber spinner badge in navbar when extractions are running - Tracks jobs in localStorage (pedquiz_jobs key) - ExtractionProgress updates localStorage as steps arrive - Click badge for dropdown showing current step per job CSS: - .nav-desktop / .nav-mobile-controls classes for responsive nav - Default cards: slightly refined shadow and border Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg16
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_DB: pedquiz
|
|
POSTGRES_USER: pedquiz
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U pedquiz"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
ports:
|
|
- "127.0.0.1:8081:80"
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
|
|
backend:
|
|
build: ./backend
|
|
env_file:
|
|
- ./backend/.env
|
|
environment:
|
|
- ANONYMIZED_TELEMETRY=False
|
|
volumes:
|
|
- uploads_data:/app/uploads
|
|
- chroma_data:/app/chroma_data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
restart: unless-stopped
|
|
|
|
celery:
|
|
build: ./backend
|
|
command: celery -A app.tasks worker --loglevel=info --concurrency=2
|
|
env_file:
|
|
- ./backend/.env
|
|
environment:
|
|
- ANONYMIZED_TELEMETRY=False
|
|
volumes:
|
|
- uploads_data:/app/uploads
|
|
- chroma_data:/app/chroma_data
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
volumes:
|
|
- redis_data:/data
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
uploads_data:
|
|
chroma_data:
|
|
postgres_data:
|
|
redis_data:
|