mauricioklein / docker-compose-api

A Docker Compose parser for Ruby
MIT License
33 stars 25 forks source link

Add aliased links support #11

Closed zuazo closed 8 years ago

zuazo commented 8 years ago

This fixes the aliased links support.

For example:

mydb:
  # [...]
wordpress:
  links:
    - mydb:mysql
  command: ping mysql

In this particular example, the mydb container has to be reachable from wordpress as mysql instead of mydb.

On the current master, the link alias seems to be completely ignored.

mauricioklein commented 8 years ago

Thanks for improving the tool @zuazo , and sorry about the bug. Merging...

zuazo commented 8 years ago

Thanks for merging!

Don't worry, your code is very clean and well organized :wink: