Both web template and API template got 1.4.0 release which adds expicit Caddyfile configs for production and development Docker environments.
These configs are in docker/Caddyfile for production image and docker/dev/Caddyfile for development image. After these are edited you need to rebild the image with make build to apply changes.