Deploying a machine learning model (complex scikit-learn pipeline) using Streamlit as a frontend and FastAPI as a backend.
In this case, both FastAPI and Streamlit are wrapped in one docker container. However, despite this, port 8000 for accessing FastAPI is open for use and can be subject to additional load from any other applications, not just from Streamlit.
Building this docker:
Starting a named container in daemon mode on port 8000 and 8501 :