How to get docker bridge network working inside Whonix Workstation?

I am trying to get a bunch of containers, which use docker bridge networks, to work, but when they are on bridge network they cannot talk to each other, nor can they talk to the outside world. It does work for a single container when it uses the host network.

Any help regarding this matter is appreciated. I tried using ChatGPT and changed a lot of firewall settings and it did not help.

Permanently disabling the firewall using the command sudo systemctl mask whonix-firewall allowed the bridge network to work.