You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way for an application with a docker-compose.yml to depend on another application with docker-compose.yml?
For instance, let's pretend I have an API in one repo and a UI in another repo. And both have a docker-compose.yml file and each has it's own set of containers that are required.
Can the UI have some sort of directive that will tell it to load the API and all of it's containers?
The text was updated successfully, but these errors were encountered:
This is a terrible answer, composition is about not know how something is implemented, a docker image and a composite docker image (compose) should be interchangeable without clients knowing that you decided to break your problem into smaller pieces or aggregated a bunch of stuff in a larger unit.
This is why the software industry prefers composition over inheritance (extends).
Is there a way for an application with a
docker-compose.yml
to depend on another application withdocker-compose.yml
?For instance, let's pretend I have an API in one repo and a UI in another repo. And both have a
docker-compose.yml
file and each has it's own set of containers that are required.Can the UI have some sort of directive that will tell it to load the API and all of it's containers?
The text was updated successfully, but these errors were encountered: