When running my docker compose up, I get the following error in my logs:
acme: Error → One or more domains had a problem:\n[mydomain.org] [mydomain.org] acme: error presenting token: Cloudflare: failed to find zone org.: Zone could not be found\n"
acme: Error → One or more domains had a problem:\n[.mydomain.org] [.mydomain.org] acme: error presenting token: Cloudflare: failed to find zone org.: Zone could not be found\n"
My domain is setup in Cloudflare, and dig NS shows that the NS servers are Cloudflare servers.
This is working now. Key change was to set resolvers in the [acme.dnsChallenge] section.
ACME now creates the TXT record as expected and letsencrypt certs are issued appropriately.