* _[Creating a Simple but Effective Outbound "Firewall" using Vanilla Docker-Compose](https://sequentialread.com/creating-a-simple-but-effective-firewall-using-vanilla-docker-compose/)_
* _[Docker API Security Gateway Proof Of Concept](https://sequentialread.com/docker-api-security-gateway/)_
2. An application that talks to the docker socket to get info about containers and then generates a Caddy config, which it posts to Caddy 2 HTTP server.
1. I don't like the template-based solutions because they are harder to debug. One typically cannot put breakpoints or print statements inside a large complicated template file.
2. I had already written code that generates Caddy configs for some of my other projects. This is the code that eventually became [greenhouse-daemon](https://git.sequentialread.com/sqr/greenhouse-daemon/src/commit/c563be03d35ee5d56d040ae7a3a1ca455bb79d92/config_service.go).