have you tried to add a dns server (local dns or internet dns) to you docker-compose.yaml?
here is an example: