I have a docker-compose.yml locally with: dnsmasq -> pihole -> stubby The first dnsmasq is for local .test domains for dev. Works well for when i'm not on one of my networks.
Why not configure your local .test domains in your Pi-hole? That's also dnsmasq, you can use the same configuration options.
On the go is the key here.