Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Deployment infrastructure

This directory contains infrastructure containers and the Nginx API gateway. The backend services are intentionally not containerized. Run the infrastructure from this directory:

docker compose up -d

Nginx reaches backend processes running on the Docker host through host.docker.internal. Start each backend on its assigned port and bind it to an address reachable from Docker (for example, Uvicorn's --host 0.0.0.0).

API gateway routes

The gateway is available at http://localhost:8080 and removes the service prefix before forwarding each request.

Gateway prefix Host-run backend service Temporary port
/api/pdf/ PDF ingestion 8001
/api/assistant/ AI learning assistant 8002
/api/quiz/ Personalized quiz 8003
/api/notes/ Handwritten notes 8004

Examples:

  • /api/pdf/ingest/... forwards to the PDF service's /ingest/... route.
  • /api/assistant/conversations/... forwards to /conversations/....
  • /api/quiz/api/v1/quiz/... forwards to /api/v1/quiz/....
  • /api/notes/api/health forwards to the notes service's /api/health.
  • /health is the API gateway's own health endpoint.

Infrastructure ports copied from the PDF ingestion Compose setup remain available: Redis 6379, Qdrant 6333/6334, and MinIO 9000/9001.

The backend .env files must use host-accessible infrastructure endpoints when the services run outside Docker, such as localhost:6379, localhost:6333, and localhost:9000.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors