Tunnel- Bad gateway Error code 502

Hi, I keep getting bad gateway when accessing my url which was setup under public hostname. this service has been setup on a mac using docker desktop. I have a raspberry pi I can connect to on same network. Please advise? thanks