This project runs a FastAPI backend and a Streamlit frontend together using Docker Compose.
- Clone the repo:
git clone https://github.com/yourusername/fastapi-streamlit-template.git
cd fastapi-streamlit-template- Build and run the app:
docker-compose up --build-
API (FastAPI): http://localhost:8000/api/hello
Returns a greeting from the backend. -
UI (Streamlit): http://localhost:8501
Click the button to fetch data from the API.
docker-compose down- Python 3.10
- FastAPI
- Streamlit
- Docker & Docker Compose