- Add rules_engine.py with quantitative rules for all 8 workout types - Add quality gate retry loop in generate_single_workout() - Expand calibrate_structure_rules to all 120 combinations (8 types × 5 goals × 3 sections) - Wire WeeklySplitPattern DB records into _pick_weekly_split() - Enforce movement patterns from WorkoutStructureRule in exercise selection - Add straight-set strength support (single main lift, 4-6 rounds) - Add modality consistency check for duration-dominant workout types - Add InjuryStep component to onboarding and preferences - Add sibling exercise exclusion in regenerate and preview_day endpoints - Display generator warnings on dashboard - Expand fix_rep_durations, fix_exercise_flags, fix_movement_pattern_typo - Add audit_exercise_data and check_rules_drift management commands - Add Next.js frontend with dashboard, onboarding, preferences, history pages - Add generator app with ML-powered workout generation pipeline - 96 new tests across 7 test modules Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
57 lines
1.0 KiB
YAML
57 lines
1.0 KiB
YAML
services:
|
|
db:
|
|
image: postgres:14
|
|
volumes:
|
|
- database:/var/lib/postgresql/data
|
|
environment:
|
|
- POSTGRES_DB=werkout
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
web:
|
|
build: .
|
|
volumes:
|
|
- .:/code
|
|
- /code/werkout-frontend/node_modules
|
|
- /code/werkout-frontend/.next
|
|
ports:
|
|
- "8001:8000"
|
|
- "3010:3000"
|
|
environment:
|
|
- POSTGRES_NAME=werkout
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_PASSWORD=postgres
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
links:
|
|
- db
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
|
|
celery:
|
|
restart: always
|
|
build:
|
|
context: .
|
|
command: celery -A werkout_api worker -l info
|
|
volumes:
|
|
- .:/code
|
|
environment:
|
|
- DB_HOST=db
|
|
- DB_NAME=werkout
|
|
- DB_USER=postgres
|
|
- DB_PASS=postgres
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
- web
|
|
|
|
volumes:
|
|
database:
|