Error "cannot load certificate", when deploing wordpress+certbot with docker-compose

Do you really expect that you can use example.com as a domain for your application? Unless you are the owner of that domain it won’t work.