DEV Community

Discussion on: Using Docker Compose for PHP Development

Collapse
 
radmen profile image
Radosław Mejer

For version: '2' you can skip links directive. Every service defined in docker-compose.yml is available from other services by its name.

Collapse
 
kellyjandrews profile image
Kelly Andrews

Nice. I completely misunderstood how that worked, bit after some research I think you are right.

Thanks for the tip!

Collapse
 
radmen profile image
Radosław Mejer

You're welcome :) links is "blast from the past". It was required in the first version of docker-compose.