File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ services:
2828 context : .
2929 dockerfile : ./embedder_service/Dockerfile
3030 container_name : embedder_service
31- ports :
32- - " 8005:8000"
3331 env_file :
3432 - ./embedder_service/.env
3533 depends_on :
@@ -48,6 +46,7 @@ services:
4846 - pdf_extraction_service
4947 - pdf_processor_service
5048 - chat_service
49+ - embedder_service
5150
5251 redis :
5352 container_name : redis
Original file line number Diff line number Diff line change 99 format = "%(asctime)s [%(levelname)s] %(name)s: %(message)s"
1010)
1111
12- app = FastAPI ()
12+ app = FastAPI (root_path = "/embedder" )
1313
14- # /Health endpoint
1514app .include_router (health .router )
16- # /Embed endpoint
17- # /Status/{doc_id} endpoint
1815app .include_router (embed .router )
Original file line number Diff line number Diff line change 11PDF_PROCESSOR_URL = http://pdf_processor_service:8000
22PDF_EXTRACTOR_URL = http://pdf_extraction_service:8000
33CHAT_URL = http://chat_service:8000
4+ EMBEDDER_URL = http://embedder_service:8000
Original file line number Diff line number Diff line change @@ -19,4 +19,8 @@ server {
1919 location /chat/ {
2020 proxy_pass ${CHAT_URL}/;
2121 }
22+
23+ location /embedder/ {
24+ proxy_pass ${EMBEDDER_URL}/;
25+ }
2226}
You can’t perform that action at this time.
0 commit comments