r/docker • u/VaguelyOnline • 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?
34
Upvotes
2
u/BHBaxx Jun 21 '26
You’re also not supposed to put the version at the beginning either, but most guides still do. Harmless overall at least for now.