This solved the issue for me.
Create a file with the name "metadata.json" in the same directory as your compose.yml (legacy name: docker-compose.yml) file.
The metadata.json file must have the following content:
{
"ComposeFilePath": "./compose.yml"
}