I have a site working which has angular and node apps running in docker containers. These are brought up in a docker-compose file which also mounts volumes linking to the letsencrypt certificates, and it all seems to work fine. I created the letsencrypt certificates running certbot without a container.
I'm interested then, to understand why many people seem to run certbot in its own container in order to get and renew certificates? That approach seems to add to the complexity by having another container ... what am I missing - is my approach 'wrong' for some reason?
Edit: I wanted to add some examples: here, here, here, and here all run certbot in a container. I would love to understand the benefits of containerising certbot.