File size: 575 Bytes
aa81fbd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.9"

services:
  indexer:
    build: .
    command: ["python", "ingest.py"]
    volumes:
      - .:/app
    working_dir: /app
    # This runs once to (re)build subset + chunks + embeddings

  api:
    build: .
    command: ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
    depends_on:
      - indexer
    ports:
      - "8000:8000"
    volumes:
      - .:/app
    working_dir: /app

  ui:
    build: .
    command: ["python", "app.py"]
    depends_on:
      - indexer
    ports:
      - "7860:7860"
    volumes:
      - .:/app
    working_dir: /app