first you should check logs of cloudflare tunnel - most likely it cannot access your docker network. if you are using cloudflare container - it should use same network as a Immich instance.
in short: find the tunnel log and see what is happening there.
there is an open request for this, but seems that not being actively worked on: https://github.com/mastodon/mastodon/issues/18601