localhost
on a docker container is scoped to it’s own internal network. So if you wantlocalhost
to refer to the “HOST” i.e the machine running docker, on mac we can usehost.docker.internal
-
- ok so after battling with docker and fighting with networking issues for fly.io. A quick test with Railway has blown my mind. It lives up to the it just works motto and I can just deploy the same src code and run commands which I run locally. Railway seems like the clear winner with regards to hosting a quick node server easily and quickly!