Track A (Infrastructure & Data Layer): - docker-compose.yml with all 7 services (nginx, frontend, api, mcp, renderer, worker, postgres, redis) - docker-compose.override.yml for local dev (hot reload, port exposure) - PostgreSQL init.sql with full schema (15 tables, pgvector indexes, creator economy stubs) - .env.example with all required environment variables Track A+B (API Layer): - FastAPI app with 10 routers (auth, shaders, feed, votes, generate, desires, users, payments, mcp_keys, health) - SQLAlchemy ORM models for all 15 tables - Pydantic schemas for all request/response types - JWT auth middleware (access + refresh tokens, Redis blocklist) - Redis rate limiting middleware - Celery worker config with job stubs (render, embed, generate, feed cache, expire bounties) - Alembic migration framework Service stubs: - MCP server (health endpoint, 501 for all tools) - Renderer service (Express + Puppeteer scaffold, 501 for /render) - Frontend (package.json with React/Vite/Three.js/TanStack/Tailwind deps) - Nginx reverse proxy config (/, /api, /mcp, /renders) Project: - DECISIONS.md with 11 recorded architectural decisions - README.md with architecture overview - Sample shader seed data (plasma, fractal noise, raymarched sphere)
38 lines
837 B
YAML
38 lines
837 B
YAML
# docker-compose.override.yml — Local dev overrides
|
|
# This file is automatically picked up by docker compose
|
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
api:
|
|
volumes:
|
|
- ./services/api:/app
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
ports:
|
|
- "8000:8000" # Direct access for debugging
|
|
|
|
frontend:
|
|
volumes:
|
|
- ./services/frontend:/app
|
|
- /app/node_modules
|
|
command: npm run dev -- --host 0.0.0.0
|
|
ports:
|
|
- "5173:5173" # Vite dev server direct access
|
|
|
|
mcp:
|
|
volumes:
|
|
- ./services/mcp:/app
|
|
ports:
|
|
- "3200:3200" # Direct MCP access
|
|
|
|
renderer:
|
|
ports:
|
|
- "3100:3100" # Direct renderer access
|
|
|
|
postgres:
|
|
ports:
|
|
- "5432:5432" # Direct DB access for dev tools
|
|
|
|
redis:
|
|
ports:
|
|
- "6379:6379" # Direct Redis access for dev tools
|