23-CP-62_CEP / docker-compose.yml
IqraFatima's picture
Upload 11 files
d80a395 verified
Raw
History Blame Contribute Delete
622 Bytes
version: '3.8'
services:
# The FastAPI Backend (Optional if you just want the UI, but good for microservices)
api:
build:
context: .
dockerfile: api.Dockerfile
ports:
- "8000:8000"
volumes:
# Mount the local vector_db to avoid rebuilding it inside Docker
- ./vector_db:/app/vector_db
restart: unless-stopped
# The Streamlit Frontend
ui:
build:
context: .
dockerfile: ui.Dockerfile
ports:
- "8501:8501"
volumes:
# Mount the local vector_db
- ./vector_db:/app/vector_db
restart: unless-stopped
depends_on:
- api