Why to use labels in docker-compose

Recently I had faced an apparently easy to solve problem that however became little bit trickier in the end. Imagine an application that connects to the database. Nothing super special fancy here. The docker-compose.yml file could for instance look something like this: version: &…