Trouble getting cert for Home Assistant

I am running this command:

sudo certbot certonly --standalone --preferred-challenges http -d mcelroy-home.duckdns.org

I have both port 80 and 443 open on my router, and I am using docker compose to start everything up. Sorry I am a complete noob at all of this stuff so I’m not very good at explaining everything!