2022-01-29

how are compose services implemented?

I am wondering how compose implements services. To my understanding, each thing that compose does could be done with the docker CLI. For example, creating container, binding volumes, exposing ports and joining them on networks.

The one thing that is a blackbox in my understanding is how compose achieves the concept of a service as a unit. So that when you specify replicas under the deploy key, you get DNS round-robin kind of load balancing, similar to when you specify --endpoint-mode dnsrr in with swarm.

Can this actually be achieved with CLI commands, or does compose do some tricks with the SDK? In both cases, my question would be what exactly happens there?



from Recent Questions - Stack Overflow https://ift.tt/3uafMOn
https://ift.tt/eA8V8J

No comments:

Post a Comment