Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.45k stars 862 forks source link

Docker Redis Hostname Not Reachable from createQueue #1190

Open draconusdesigns opened 6 years ago

draconusdesigns commented 6 years ago

Within my API docker container, I can ping and connect to the networked redis container by its containername redis_cache I set in the docker compose. I ping like this and the hostname is resolveable from my API container as such: ping redis_cache

However: const queue = kue.createQueue({redis: 'redis://redis_cache:6379'}); does not work.

Redis connection to redis_cache:6379 failed - getaddrinfo ENOTFOUND redis_cache redis_cache:6379

Anyone have any ideas what i can attempt next to get this working?

podvipodvert commented 5 years ago

Did you find a solution?

jsfu commented 5 years ago

try it

redis: {
    host: xxxx,
    port: 6379,
}