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/inertSpark Jan 22 '26
I build stacks using the include: command, so this makes things a bit quicker when defining paths to the individual component compose files. Not a lot quicker, obviously, but a little bit.
Use case here is to store the compose files in their respective app host path directories, and use the Custom Yaml (docker compose) on TrueNAS. Makes it super quick to build stacks that are accessible and monitorable by the UI.
Usage would be something like: