【发布时间】:2016-10-12 14:04:46
【问题描述】:
假设我们有两个撰写文件。编写文件“A”和“B”。
它们都是产卵容器。
composefile "A" 中的容器之一需要与 composefile "B" 链接。
如何?
我曾尝试使用 external_links,但没有运气。
任何建议,将不胜感激。
【问题讨论】:
-
您可以使用标准的
link并链接撰写文件,请参阅docs.docker.com/compose/reference/overview/#/…Use the -f flag to specify the location of a Compose configuration file. You can supply multiple -f configuration files. When you supply multiple files, Compose combines them into a single configuration. Compose builds the configuration in the order you supply the files. Subsequent files override and add to their successors
标签: docker containers docker-compose