R
Railway5mo ago
IgnisDa

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
Solution:
how do you know that the api is running on 0.0.0.0 and 8000
Jump to solution
25 Replies
Percy
Percy5mo ago
Project ID: 6ef7539d-c186-4609-a904-178fd8fa7fa0
IgnisDa
IgnisDaOP5mo ago
6ef7539d-c186-4609-a904-178fd8fa7fa0 does localhost not work in railway?
Brody
Brody5mo ago
is the api running within the same container?
IgnisDa
IgnisDaOP5mo ago
yeah
Brody
Brody5mo ago
try 127.0.0.1
IgnisDa
IgnisDaOP5mo ago
it works this way locally and on fly so im wondering why it does not here.
Brody
Brody5mo ago
not sure, but please try
IgnisDa
IgnisDaOP5mo ago
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
Brody
Brody5mo ago
Railway is aware of the slow downs and is continually improving it
IgnisDa
IgnisDaOP5mo ago
alright. its deployed. its still not working is there a way to ssh into the running service?
Brody
Brody5mo ago
there is not, please provide specific errors
IgnisDa
IgnisDaOP5mo ago
No description
Solution
Brody
Brody5mo ago
how do you know that the api is running on 0.0.0.0 and 8000
IgnisDa
IgnisDaOP5mo ago
Does railway inject a variable called PORT?
Brody
Brody5mo ago
yes
IgnisDa
IgnisDaOP5mo ago
how do i remove it?
Brody
Brody5mo ago
you can't, im not sure why you want to?
IgnisDa
IgnisDaOP5mo ago
I have a custom reverse proxy setup inside the docker image with tightly coupled services
Brody
Brody5mo ago
you can change it by setting your own PORT variable
IgnisDa
IgnisDaOP5mo ago
alright trying that working now. removed this as well
Brody
Brody5mo ago
id recommend you stay with 127.0.0.1, one less dns lookup
IgnisDa
IgnisDaOP5mo ago
hmm. is this not cached at some level?
IgnisDa
IgnisDaOP5mo ago
should i do it on the reverse proxy as well?
No description
Brody
Brody5mo ago
no? yes
IgnisDa
IgnisDaOP5mo ago
okay. thank you very much for your help. this can be closed.
Want results from more Discord servers?
Add your server