Can you run gateway on the same Pi as a Pihole?

I’d really love to have one Raspberry pi that is used for my WebThings and a PiHole (which is what I had it set up as before). Has anyone used docker or something similar to “segment” the Pi so that it can perform multiple functions with the gateway active? Thoughts?

Yes, that should work fine.

How about doing it without using containers? I see that node listens to ports 8080 and 4443, but captures connections on port 80 and 443. How can I stop it from capturing the normal web ports (80 & 443) so I can use them for other things?

sudo update-rc.d -f gateway-iptables remove