- Redesigned frontend with Outfit/Figtree typography, coral accent palette, noise texture, glassmorphism header, and staggered animations - Split monolithic index.html into modular JS (app, api, upload, batch, results, page-viewer, utils) and extracted CSS - Fixed worker.py to generate page images for Visual Page Inspector - Added Docker Compose stack (web, worker, redis, postgres) - Added batch upload, HTML report export, rate limiting, and Redis queue - Extended test suite with checker, remediation, worker, and DB tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.web
|
|
ports:
|
|
- "8000:80"
|
|
volumes:
|
|
- pdf-uploads:/app/uploads
|
|
- pdf-results:/app/results
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
postgres:
|
|
condition: service_healthy
|
|
env_file: .env
|
|
restart: unless-stopped
|
|
|
|
worker:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.worker
|
|
volumes:
|
|
- pdf-uploads:/app/uploads
|
|
- pdf-results:/app/results
|
|
- pdf-logs:/app/logs
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
postgres:
|
|
condition: service_healthy
|
|
env_file: .env
|
|
deploy:
|
|
replicas: ${WORKER_COUNT:-2}
|
|
restart: unless-stopped
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
volumes:
|
|
- redis-data:/data
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
volumes:
|
|
- pg-data:/var/lib/postgresql/data
|
|
- ./db/init.sql:/docker-entrypoint-initdb.d/init.sql
|
|
environment:
|
|
POSTGRES_DB: ${DB_NAME:-pdf_checker}
|
|
POSTGRES_USER: ${DB_USER:-pdf_checker}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD:-dev_password}
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-pdf_checker}"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
pdf-uploads:
|
|
pdf-results:
|
|
pdf-logs:
|
|
redis-data:
|
|
pg-data:
|