Insurance_PremiuM_Category / docker-compose.yml
SURESHBEEKHANI's picture
Upload 33 files
52d98a1 verified
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: insurance-backend
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
volumes:
- ./backend:/home/uv-example-user/src
command: ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: insurance-frontend
ports:
- "8501:8501"
environment:
- STREAMLIT_SERVER_PORT=8501
volumes:
- ./frontend:/app
command: ["streamlit", "run", "frontend.py", "--server.port=8501", "--server.address=0.0.0.0"]