I believe this is a simple question, but I still don't understand it from the Docker documentation. What is the difference between links and external links?
I like external_links, since I want to have a basic docker layout, and I want to extend it without overriding the main links.
What exactly do I have, I'm trying to configure logstash, which depends on the elastics search. Elasticsearch is in the main docker, and logstash is in the dependent. Therefore, I had to define elastic search in the dependent docker composition as a link, since logstash in it is needed as a link. BUT Elasticsearch already has its own links, which I donβt want to repeat in the dependent.
Can I do this using external_link instead of link?
I know that links will ensure that the link is first before linking, will external_link do the same?
Any help is appreciated. Thanks.
docker docker-compose elasticsearch logstash
amm
source share