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!
Do I need to consolidate everything into a single entry-point script instead?
I assume you mean the 1 container for everything pattern. IMO no.
One process (or service) per container makes it simpler. For example it enables you to reuse the canonical nginx image maintained by professionals.
Should I use Kubernetes deployment models instead?
Unless you have a reason (like to gain some experience) . I can’t see how k8s can simplify this case.
1 Like