Yeah this post had me a little worried I’m doing something wrong haha. But I do it just like that. Compose file per stack.
Comment on I'm using compose wrong and I know it.
null@slrpnk.net 1 year ago
I think compose is best used somewhere in between.
I like to have separate compose files for all my service “stacks”. Sometimes that’s a frontend, backend, and database. Other times it’s just a single container.
It’s all about how you want to organize things.
fraydabson@sopuli.xyz 1 year ago
mhzawadi@lemmy.horwood.cloud 1 year ago
I do this, 1 compose file per application. That has all the things that application need, volumes, networks, secrets.
In single docker host land, each application even has its own folder with the compose file and any other artifacts in it.