Using caddy for anything that might be commercial,by compiling, seems like a huge pain:
https://www.digitalocean.com/community/tutorials/how-to-host...
https://www.digitalocean.com/community/tutorials/how-to-host...
"If your company uses official Caddy binaries internally, in production, or distributes Caddy, a commercial license is required."
So if you are not using the official binaries (for example a community-provided Caddy Docker image) a commercial license is not required.