Link services to themselves

E.g. `fig run db ...` will be able to access the db service.
This commit is contained in:
Ben Firshman 2014-01-19 20:43:31 +00:00
commit e4e9f0bc19
3 changed files with 14 additions and 2 deletions

View file

@ -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):