Assuming the container name is hacert
docker exec hacert certbot certonly --standalone --non-interactive --agree-tos --email [email protected] --http-01-port=54321 --cert-name example.com -d example.com -d www.example.com
docker exec hacert /update-haproxy-certs.sh