- Add Next.js rewrites to proxy API calls through same origin (fixes login/media on werkout.treytartt.com) - Fix mediaUrl() in DayCard and ExerciseRow to use relative paths in production - Add proxyTimeout for long-running workout generation endpoints - Add CSRF trusted origin for treytartt.com - Split docker-compose into production (Unraid) and dev configs - Show display_name and descriptions on workout type cards - Generator: rules engine improvements, movement enforcement, exercise selector updates - Add new test files for rules drift, workout research generation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
services:
|
|
db:
|
|
image: postgres:14
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/user/downloads/werkout_api/postgres:/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: .
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /mnt/user/downloads/werkout_api/media:/code/media
|
|
ports:
|
|
- "8001:8000"
|
|
- "3010:3000"
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@db:5432/werkout
|
|
- REDIS_URL=redis://redis:6379
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
redis:
|
|
condition: service_started
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
restart: unless-stopped
|
|
|
|
celery:
|
|
build:
|
|
context: .
|
|
restart: unless-stopped
|
|
command: celery -A werkout_api worker -l info
|
|
environment:
|
|
- DATABASE_URL=postgres://postgres:postgres@db:5432/werkout
|
|
- REDIS_URL=redis://redis:6379
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
- web
|