Unable to set up Nextcloud AIO Docker container

I am trying to get Nextcloud AIO to work. It is almost done, but I need the mastercontainer to use my DNS, to be able to find the server locally. The issue is that the mastercontainer is the single only container that does not respect my dns, specified in /etc/docker/daemon.json. Every other container respects it. That’s why Nextcloud doesn’t find my domain. But how could I fix this?

I solved the issue. I had to specify the ports sin combination with the IP and also use the absolute IP for the APACHE binding instead of the localhost.