Auto Caddy certificates with docker?

Essentially I’m trying to get the auto HTTPS feature in Caddy working while running it in a docker container. Any ideas on the optimal way of doing this? If not, what would be the best way to configure https manually using tailscale’s certificates?

If you don’t know about the feature, here are a few links: