This project is a demonstration of using Docker Compose to run a Python
application consisting of Streamlit
, FastAPI
, and MongoDB
in Docker
containers.
Make sure you have Docker
and Docker Compose
installed on your machine.
git clone https://github.com/moiseberthe/dockerized-python-app.git
client/
: Application Streamlitserver/
: Application FastAPIutils/
: train models foriris
andpenguins
classification
The Docker files (client/Dockerfile
and server/Dockerfile
) contain the build configurations for the Streamlit and FastAPI services.
The docker-compose.yml
file contains the Docker configuration for the services.
docker compose up --build
The project will be accessible at the following address:
- Streamlit: http://localhost:8501
- FastAPI: http://localhost:8000
Make sure to adjust the application files (client/app.py
and server/app.py
) according to your needs.