Link services to themselves
E.g. `fig run db ...` will be able to access the db service.
This commit is contained in:
parent
e0637990aa
commit
e4e9f0bc19
3 changed files with 14 additions and 2 deletions
|
|
@ -212,6 +212,9 @@ class Service(object):
|
|||
for container in service.containers():
|
||||
links.append((container.name, container.name))
|
||||
links.append((container.name, container.name_without_project))
|
||||
for container in self.containers():
|
||||
links.append((container.name, container.name))
|
||||
links.append((container.name, container.name_without_project))
|
||||
return links
|
||||
|
||||
def _get_container_options(self, override_options, one_off=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue