Binding of services to a specific IP with pihole-v6

Pi-hole v6 dropped lighttpd as webserver and is now embedding a webserver engine itself, see Introducing Pi-hole v6.

That's a v5 environment variable, to be replaced by FTLCONF_webserver_port in Pi-hole v6.

See the disclaimer for the Pi-hole v6 Docker image, in particular about environment variables:

!!! THE LATEST VERSION CONTAINS BREAKING CHANGES

Pi-hole v6 has been entirely redesigned from the ground up and contains many breaking changes.

Environment variable names have changed, script locations may have changed.

If you are using volumes to persist your configuration, be careful.
Replacing any v5 image (2024.07.0 and earlier) with a v6 image will result in updated configuration files. These changes are irreversible.

If your docker compose is still using v5 environment variables, please have a read of Upgrading from v5.x - Pi-hole documentation and adjust as required.

Adjusting FTLCONF_webserver_port to avoid port conflicts should allow you to start your Pi-hole container in host mode, unless ports 53 and 67 would also be occupied by other DNS or DHCP services already running on the same machine.