The best way to start our application is to use the docker provided by us. The docker-compose command starts all services with the correct configuration.
Now we would like to provide a docker layout where the application works with another backend. In this compilation, 8 out of 10 services are the same, and 2 are different.
How to achieve this without code duplication? I see that a service can distribute a service from another file for docker linking, however, for this to happen, you still need to list all 10 services in both files.
source share