5 months ago
Hello, joined today and deployed n8n/worker template for Queue mode.
Then I created a practice database and read instructions on https://docs.railway.com/guides/redis#connect
I'm bit confused as it seems on redit I found only CLI, and client code snippet (On pic what they provide when clicking connect)
Also read the example here: https://docs.railway.com/guides/variables#referencing-another-services-variable-example
and still not understand.
What do I need to copy and where do I have to paste it and save? How can I tell it's done properly?
Railway & Redit platforms are new to me, yet I have some experience with Wordpress, placing API's credentials and update ip on server for domain. With 7 days backup I can restore before state, worst case I'll reset the project. I just want to understand how to connect correctly.
Appreciate your explicit guidelines. If there are screenshots or videos, that would be extremely helpful in applying solution.
Thank you
2 Replies
5 months ago
Go to your n8n service (not Redis) → Variables tab → Add new variable QUEUE_BULL_REDIS_URL with value redis://default:[password]@[redis-hostname].railway.internal:6379 (copy this from your Redis service's Connect button). Click Deploy to restart n8n - it will automatically connect to Redis using this environment variable.
Hopefully, this will solve your issues.
dostogircse171
Go to your n8n service (not Redis) → Variables tab → Add new variable QUEUE_BULL_REDIS_URL with value redis://default:[password]@[redis-hostname].railway.internal:6379 (copy this from your Redis service's Connect button). Click Deploy to restart n8n - it will automatically connect to Redis using this environment variable. Hopefully, this will solve your issues.
5 months ago
Thanks for the prompt reply!
Inside the value [password] & [redis-hostname] I place the static values provided from Redis CLI code snippet (the part comes after redis-cli or the whole thing?)
I'm bit confused because the format of the code snippet from Redis differs from redis://default:[password]@[redis-hostname].railway.internal:6379
it actually ends with redis' cloud details and not railway's - is that okay?