Implement local task 09 training workflows

This commit is contained in:
andreysk0304 2026-09-21 17:40:54 +03:00
commit cec84ffcd0
45 changed files with 2679 additions and 366 deletions

View file

@ -15,11 +15,14 @@ services:
backend:
build: ./backend
image: lct-hack-backend:local
# Один воркер принципиально: состояние живой сессии и реестр наблюдателей
# живут в памяти процесса (docs/arch/STACK.md).
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --workers 1
command: sh -c "alembic upgrade head && python scripts/seed.py && uvicorn app.main:app --host 0.0.0.0 --port 8000 --workers 1"
environment:
DATABASE_URL: postgresql+asyncpg://lct:lct@postgres:5432/lct
OFFLINE: "true"
VOICE_ENABLED: "false"
volumes:
- ./backend:/app
- ./scenarios:/scenarios:ro
@ -30,10 +33,14 @@ services:
frontend:
build: ./frontend
image: lct-hack-frontend:local
command: npm run dev -- --host 0.0.0.0
volumes:
- ./frontend:/app
- /app/node_modules
environment:
VITE_BACKEND_URL: http://backend:8000
VITE_WS_BACKEND_URL: ws://backend:8000
ports: ["5173:5173"]
depends_on: [backend]