Use Pihole docker as DNS on the same device and other devices?

Preface: I have zero knowledge about docker.

I installed Pi-hole docker on my laptop running Windows 11, and I want to use it for my laptop and my phone as DNS. I thought it would be as simple as putting in my laptop’s IP as DNS in my phone, and putting 127.0.0.1 as DNS in my laptop. But alas none of it worked. I have pihole up and running, it just shows zero clients.

I tried a lot of stuff I could find online, but half of it went over my head.

Both devices are connected to my pretty-locked-down-ISP router.

You need to make sure to have Pihole configured correctly and also publish the port(s) of the container, mainly 53:UDP.

And how would I know if I have configured it correctly? My compose file is the same as on github, with TZ and password changed.

I don’t know how would I go about publishing the port of a container.