CSF and docker

I've configured a CSF firewall in Ubuntu 20.04, and I'm running a docker daemon. Does anyone have a working configuration so that the docker containers can maintain their network function?

Enabling the docker-option in csf.conf doesn't help at all. Right now I've put service docker restart inside /etc/csf/csfpost.sh which works since docker daemon is restarting and configuring the iptables after csf has applied it's rules. However, after some time (a couple of hours) CSF is refreshing the rules and the docker daemons looses network access again, seems like it then ignores the csfpost.sh script. Any ideas how to solve this?