Nextcloud port in iptables are not removing

Hey,
I setup nextcloud in my digital ocean with the nextcloud app available in digitalocean marketplace ,
but now the ports are open in iptables under DOCKER chain, i tried to remove a rule.
but it reappears after restarting docker service.
need help to remove a single rule from the iptables.

Docker will punch holes in the firewall for published ports on every interface it is bound to.
You can restrict to which ip the published port binds to: -p ip:host-port:container:port (note: this feature is not supported for swarm service).

If the template on the DigitalOcean does not support to restrict the published port to the ip, I would suggest to raising a ticket.