Hi, in the redis configuration, in the container log it tells me this.
[ErrorReply: WRONGPASS invalid username-password pair or user is disabled.]
`
When I create the container I pass the environment variable to it
redis-liburutegia:
container_name: redis-liburutegia
image: redis
ports:
- "${REDIS_PORT}:6379"
volumes:
- ~/Application/redis:/usr/local/etc/redis/:ro
command: redis-server /usr/local/etc/redis/redis.conf
environment:
- REDIS_PORT=${REDIS_PORT}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PASSWORD=${REDIS_PASSWORD}
networks:
- ntk-app
```
**In the redis container, if the environment variable is visible, but the value of the variable does not read well**
The Redis is connected on the PORT: 6379 [ErrorReply: WRONGPASS invalid username-password pair or user is disabled.]
**For example if I connect to the redis container**
lopuma@sauron-liburutegia ~/Development/Liburutegia (master)$ docker exec -it redis-liburutegia redis-cli 127.0.0.1:6379> CONFIG GET requirepass (error) NOAUTH Authentication required. 127.0.0.1:6379> AUTH ${REDIS_PASSWORD} OK 127.0.0.1:6379> CONFIG GET requirepass 1) "requirepass" 2) "${REDIS_PASSWORD}" 127.0.0.1:6379> ```
As we can see, it logs me in with this VALUE ${REDIS_PASSWORD}, which is the value of the key of the environment variable that I want it to read, how can this be corrected?