Deploy Streamlit using Docker-Compose

Can I deploy a 4-tier application (Streamlit UI + Nginx + REST API + text files) using Docker Compose, or should I consider a different approach instead?
Specifically:

  • Do I need to consolidate everything into a single entry-point script instead?
  • Should I use Kubernetes deployment models instead?

Thanks!