UFW port not accessible from public web despite rule explicitely allowing it

Solution 1:

As the ports 9273 and 2004 are exposed by Docker, the packets to these ports are going through FORWARD chain and then through DOCKER-USER chain. The rules you added to DOCKER-USER are blocking most of the external traffic to docker containers networks. You need to allow forwarded traffic with ufw route allow or you can add rules directly to DOCKER-USER chain.