4 ms·
Yes they do, and if you're willing to go all in with Ansible you can entirely replace docker-compose.
by Spivak 9y ago
Yes they do, and if you're willing to go all in with Ansible you can entirely replace docker-compose.
- RRRA 9y agoWhy not simply call docker-compose through ansible and template the yml? I've had issues or a lack of features with ansible's docker support, but use it otherwise for pretty much everything. I just don't see a point to moving to a wrapper than can never have all the latest support / options that upstream has.
- geerlingguy 9y agoI've done it both ways—both are valid approaches. The nice thing about using Ansible for all the management is consistency (especially in mixed container / not-container environments). The nice thing about templating a compose file is being able to track the latest Docker / Compose versions more easily.