Are you trying to use a custom certificate rather than the one provided by let’s encrypt?
DId you follow Allow SSL / HTTPS for your Discourse Docker setup (which isn’t recommended anymore) or just a standard install?
Are you using cloudflare or something else that might be interfering with the certificate renewal?