EOFError running certbot with docker

CAN SOMEONE PLEASE EXPLAIN TO ME WHY THIS IS HAPPENING? YOUR SOFTWARE DOESN'T WORK WITH DOCKER COMPOSE. CAN SOMEONE PLEASE RESPOND WITH AN ANSWER.

certbot | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot | Simulating a certificate request for ft1.hedgx.io
certbot |
certbot | Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
certbot | Domain: ft1.hedgx.io
certbot | Type: connection
certbot | Detail: 140.238.194.78: Fetching http://ft1.hedgx.io/.well-known/acme-challenge/TBnzT-LavCVBPDvqybUkDN1P0qghwHDV-FdslH62llU: Connection refused
certbot |
certbot | Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
certbot |
certbot | Some challenges have failed.
certbot | Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.