feat: initial microservices project structure
Services: - api: FastAPI gateway with JWT auth, async endpoints, WebSocket - worker-gpu: CUDA sentence-transformers, FAISS IVFFlat, Ollama LLM - worker-indexer: Winnowing+MinHash plagiarism detection, PDF/DOCX extraction - worker-notifier: SMTP email notifications - worker-gost: GOST 7.1-2003 and GOST R 7.0.5-2008 formatting Infrastructure: - docker-compose.yml (production) + docker-compose.dev.yml (hot reload) - Nginx reverse proxy + WebSocket support - PostgreSQL 16 with Alembic migrations - Elasticsearch 8 with Russian/English analyzers - MinIO, RabbitMQ, Redis, Ollama Frontend: - React 18 + Vite + TypeScript + TailwindCSS + Zustand + React Query v5 - 9 pages: Home, Search, Cabinet, Task, Check, Bibliography, Pricing, Login, Register Scripts: - Parser stubs: OpenAlex, КиберЛенинка, arXiv (Phase 0 - to be filled) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
63
docker-compose.dev.yml
Normal file
63
docker-compose.dev.yml
Normal file
@@ -0,0 +1,63 @@
|
||||
version: "3.9"
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
# Override для разработки: hot reload, volume mounts, DEBUG режим
|
||||
# Использование: docker compose -f docker-compose.yml -f docker-compose.dev.yml up
|
||||
# ═══════════════════════════════════════════════════════════════════════════════
|
||||
|
||||
services:
|
||||
|
||||
api:
|
||||
build:
|
||||
context: ./services/api
|
||||
dockerfile: Dockerfile
|
||||
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir /app/app
|
||||
volumes:
|
||||
- ./services/api:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
ENVIRONMENT: development
|
||||
|
||||
worker-gpu:
|
||||
build:
|
||||
context: ./services/worker-gpu
|
||||
dockerfile: Dockerfile
|
||||
command: celery -A app.celery_app worker -Q queue.gpu -c 1 -n gpu@%h --loglevel=debug
|
||||
volumes:
|
||||
- ./services/worker-gpu:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
ENVIRONMENT: development
|
||||
|
||||
worker-indexer:
|
||||
build:
|
||||
context: ./services/worker-indexer
|
||||
dockerfile: Dockerfile
|
||||
command: celery -A app.celery_app worker -Q queue.index -c 2 -n indexer@%h --loglevel=debug
|
||||
volumes:
|
||||
- ./services/worker-indexer:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
ENVIRONMENT: development
|
||||
|
||||
worker-notifier:
|
||||
build:
|
||||
context: ./services/worker-notifier
|
||||
dockerfile: Dockerfile
|
||||
command: celery -A app.celery_app worker -Q queue.notify -c 2 -n notifier@%h --loglevel=debug
|
||||
volumes:
|
||||
- ./services/worker-notifier:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
ENVIRONMENT: development
|
||||
|
||||
worker-gost:
|
||||
build:
|
||||
context: ./services/worker-gost
|
||||
dockerfile: Dockerfile
|
||||
command: celery -A app.celery_app worker -Q queue.gost -c 2 -n gost@%h --loglevel=debug
|
||||
volumes:
|
||||
- ./services/worker-gost:/app
|
||||
environment:
|
||||
DEBUG: "true"
|
||||
ENVIRONMENT: development
|
||||
Reference in New Issue
Block a user