I reverted the solution because after making the change, the Pi-hole Docker container failed to restart automatically after a system reboot.
At the moment, I have stopped using the WireGuard container, and everything appears to be functioning correctly.