Link via an ambassador container (Engine)
Link via an ambassador container
Rather than hardcoding network links between a service consumer and provider, Docker encourages service portability, for example instead of:
(consumer) --> (redis)
Requiring you to restart the consumer
to attach it to a different redis
service, you can add ambassadors:
(consumer) --> (redis-ambassador) --> (redis)
Or
(consumer) --> (redis-ambassador) ---network---> (redis-ambassador) --> (redis)
When you need to rewire your consumer to talk to a different Redis server, you can just restart the redis-ambassador
container that the consumer is connected to.
This pattern also allows you to transparently move the Redis server to a different docker host from the consumer.
Using the svendowideit/ambassador
container, the link wiring is controlled entirely from the do