Give public ip one container with custom bridge

I tried, but the routed networking mode doesn’t work for me. I don’t know why. I am back with this.