patterndockerMinor
Service backend/frontend in one or two containers?
Viewed 0 times
backendoneservicetwocontainersfrontend
Problem
Imagine in your stack you have RESTful services which also provide some rudimentary frontends, mostly for admin/other tech user use.
Do you include the UI inside the container or are these two containers? Why?
Do you include the UI inside the container or are these two containers? Why?
Solution
Are they separate projects (from a logical or technical perspective)? Would one ever need to be updated/recreated independently of the other one? Would they need to scale independently of each other? I think if any of those answers is a yes, then they should be separated. If not, you should be fine bundling them together. Bundling them together will reduce discrepancy or compatibility issues between the two containers.
Context
StackExchange DevOps Q#2157, answer score: 9
Revisions (0)
No revisions yet.