Communication between services inside the same docker image
ignisda
HOBBYOP

2 years ago

My services are not able to communicate with each other. Is what I am trying to do wrong?

31 Replies

ignisda
HOBBYOP

2 years ago

6ef7539d-c186-4609-a904-178fd8fa7fa0


ignisda
HOBBYOP

2 years ago

does localhost not work in railway?


2 years ago

is the api running within the same container?


ignisda
HOBBYOP

2 years ago

yeah


2 years ago

try 127.0.0.1


ignisda
HOBBYOP

2 years ago

it works this way locally and on fly so im wondering why it does not here.


2 years ago

not sure, but please try


ignisda
HOBBYOP

2 years ago

yeah it is deploying. taking a lot of time for whatever reason


ignisda
HOBBYOP

2 years ago

Definitely should not be taking this much time


ignisda
HOBBYOP

2 years ago

its just a docker image


2 years ago

Railway is aware of the slow downs and is continually improving it


ignisda
HOBBYOP

2 years ago

alright. its deployed. its still not working


ignisda
HOBBYOP

2 years ago

is there a way to ssh into the running service?


2 years ago

there is not, please provide specific errors


ignisda
HOBBYOP

2 years ago

1263167294692130800


2 years ago

how do you know that the api is running on 0.0.0.0 and 8000


ignisda
HOBBYOP

2 years ago

Does railway inject a variable called PORT?


2 years ago

yes


ignisda
HOBBYOP

2 years ago

how do i remove it?


2 years ago

you can't, im not sure why you want to?


ignisda
HOBBYOP

2 years ago

I have a custom reverse proxy setup inside the docker image with tightly coupled services


2 years ago

you can change it by setting your own PORT variable


ignisda
HOBBYOP

2 years ago

alright trying that


ignisda
HOBBYOP

2 years ago

working now.


ignisda
HOBBYOP

2 years ago

removed this as well


2 years ago

id recommend you stay with 127.0.0.1, one less dns lookup


ignisda
HOBBYOP

2 years ago

hmm. is this not cached at some level?


ignisda
HOBBYOP

2 years ago

should i do it on the reverse proxy as well?

1263170109342744600


2 years ago

no?


2 years ago

yes


ignisda
HOBBYOP

2 years ago

okay. thank you very much for your help. this can be closed.


Loading...