I didn't manually edited that file, that port comes from WEB_PORT: "850" environment variable.
If I remove that variable and recreate the container it uses the port 80, but the web ui is still missing.
This could be a combination of port conflicts over port 80 with other webservers running on your system and your usage of a privileged port (<1023) as an alternate.
What happens if you try using one of the alternate HTTP ports (8008 or 8080, provided your other webservers are not using those already), or one of the ports from 8083 to 8087?
I already checked if the ports were being used, but it's not the case. What's weird is that if I do the port mapping manually it works. What are all the ports that pi-hole opens when doing network_mode: "host"?
Hey, I found the problem, I wasn't forwarding the ports, after running sudo ufw allow 67, 53 and 80 it started working. I don't know why this wasn't required by the ports: 80:80/tcp, but I may be missing a Docker/Linux concept.