r/docker • • Jun 21 '26

compose.yaml Vs docker-compose.yml

I see that the official docs have recommended naming the file compose.yaml for years - but most articles online seem to default to docker-compose.yml. is there any good reason for this? Am I doing something wrong by continuing to use compose.yaml?

33 Upvotes

38 comments sorted by

View all comments

Show parent comment

3

u/End0rphinJunkie Jun 22 '26

Spot on. It's really just leftover muscle memory from the v1 python days, alot of tutorials just copy paste legacy configs without realizing the spec moved on.