12 ms·
So what's the hot take on using docker-compose vs. something like Ansible? Anyone have a list of interesting pros/cons to consider before spinning up a next pro
by arthurcolle 6y ago
So what's the hot take on using docker-compose vs. something like Ansible? Anyone have a list of interesting pros/cons to consider before spinning up a next project on one or the other?
Using containers + docker-compose in my own personal projects over the last few months has changed my life, so always interested in learning some more granular info re: best practices and potential pitfalls... Thanks!
- mumblemumble 6y agoIt seems to me that Ansible is best for deploying servers, and containers are best for deploying applications. You can absolutely use Ansible to deploy applications, but, if there is any essential complexity in your run-time environment or configuration needs, it seems that Ansible has a tendency to make that complexity compound multiplicatively instead of additively. Disclaimer: I say this, not as an ops person, but as a developer who often uses containers and occasionally watches people wrestling with Ansible from the sidelines.
- geerlingguy 6y agoI often use both—docker-compose (or something more heavyweight like k3s) to manage my apps and deployments, but Ansible to make sure docker / k3s / security stuff is configured correctly on the servers themselves.