You do need to install the root cert for your browser/client to trust Caddy.
The problem is that when you run Caddy in Docker, then Caddy is isolated from the host machine, so it’s not able to automate installation of the root cert to your system and browser trust stores.
So you’ll need to install it yourself manually, if using Docker. You’ll only need to do this once (as long as you don’t wipe out Caddy’s storage).
You can find the root cert in /data/caddy/pki/authorities/local/root.crt
Chrome and Firefox now have their own trust stores, and they ignore the system’s trust store in many cases. So you might need to install it in your browser’s trust store as well. The instructions depend on your browser – use Google to find instructions for that
Try making a request with curl -v https://buynow.localhost
and see if that works. Curl will use your system’s trust store (usually).