Communication between services inside the same docker image
My services are not able to communicate with each other. Is what I am trying to do wrong?
![No description](https://cdn.answeroverflow.com/1263161818642382869/image.png)
25 Replies
Project ID:
6ef7539d-c186-4609-a904-178fd8fa7fa0
6ef7539d-c186-4609-a904-178fd8fa7fa0
does
localhost
not work in railway?is the api running within the same container?
yeah
try
127.0.0.1
it works this way locally and on fly so im wondering why it does not here.
not sure, but please try
yeah it is deploying. taking a lot of time for whatever reason
Definitely should not be taking this much time
its just a docker image
Railway is aware of the slow downs and is continually improving it
alright. its deployed. its still not working
is there a way to ssh into the running service?
there is not, please provide specific errors
![No description](https://cdn.answeroverflow.com/1263167294692130896/image.png)
Solution
how do you know that the api is running on
0.0.0.0
and 8000
Does railway inject a variable called
PORT
?yes