【If both files exist】の検索結果
知らなかったそんなの……
せこせことdocker-compose.ymlに直してたけどcompose.yamlでいいんだね
The default path for a Compose file iscompose.yaml(preferred) orcompose.ymlthat is placed in the working directory.
Compose also supportsdocker-compose.yamlanddocker-compose.ymlfor backwards compatibility of earlier versions.
If both files exist, Compose prefers the canonicalcompose.yaml.compatibility of earlier versions. If both files exist, Compose prefers the canonical compose.yaml.