NOAUTH Authentication required in Redis?

  docker, docker-compose, dockerfile, node.js, redis

I’m a beginner in Redis and Docker and I’m trying to run a project that uses Redis in Docker, but this error always gets thrown when I run the command to start the server.

The file docker-compose.yml:

  redis:
    image: redis:4.0.10-alpine
    ports:
      - 6379:6379

My .env config:

# REDIS
REDIS_HOST=
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=

Maybe I need to provide some password in REDIS_PASSWORD, but I don’t know what that password would be?

Source: Docker Questions

LEAVE A COMMENT