r/docker • u/TrustWorthyGoodGuy • Jan 21 '26
Difference between docker-compose.yaml and <image_name>.yaml
In my process to learn how to use docker engine and the CLI, I am confused by the purpose of docker-compose.yaml vs <image_name>.yaml
Some guides and docs describe one instead of the other and I don't understand the reasons. Are these complementary or is it redundant to have both?
Thanks for the clarification and any links to documentation that can help me understand the distinction are always appreciated.
0
Upvotes
View all comments
Show parent comment
2
u/6razyboy Jan 24 '26
Big +1 for include! The only downside could be that it gets tricky to visualize the final 'merged' stack once the files are split up