2 years ago
I'm getting this error and something when connecting to internal redis:
Error: getaddrinfo ENOTFOUND redis.railway.internal
Similar for rabbit-mq.
I'm using a custom docker build that references the env vars using ARG, so the correct addresses are being used…
I've setup the service to start after 3 seconds, ie: sleep 3 && node index.js
Should the Dockerfile be exposing something or allowing external connections?
thanks in advance for your help!
5 Replies
2 years ago
I saw a post that explained the internal addresses use IP V6 only, but I'm unsure (and cannot find any info on) how to change the family when connecting via connection string with ioredis.
and amqplib (nodejs) doesn't seem to have any ability to change to IPV6 at all!
2 years ago
is the dockerfile using an image based on alpine? if so, please see Workaround for Alpine-based images
you're using ioredis also, so please see Known Configuration Requirements for IPv6
2 years ago
Hi Brody
Thanks! I'm using the stock node docker image…
I managed to get it working with family=0 on the redis URL, but had to use the public URL for rabbit..
2 years ago
I have contact with the creator of the rabbit mq template, I'll see about getting rabbit mq operational over the private network and update you when I have an answer!
2 years ago
I can not reproduce this issue myself, i can connect to rabbitmq just fine over the private network, i use this template https://railway.app/template/_o12zG