Make Nextcloud Snap listen to only 1 IP address

I have a server with Nextcloud installed using the snap package that works perfectly on

Now I wanted to install Pi-Hole on the same server (using Docker) and in order to avoid conflicts on port 80 and 443 I added a secondary IP address to my Ubuntu server and updated the docker-compose.yaml file to use only (leaving untouched the Nextcloud ports).

The problem is after I did that, Nextcloud took control of both the IPs (.36 AND .37) making impossibile to install my docker-PiHole

So where should I say to Nextcloud to listen only to and not to .37?