Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-compose: Set redis-server password #731

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

xoen
Copy link
Contributor

@xoen xoen commented Sep 3, 2019

Surprisingly the redis image doesn't have a nicer way of setting
the redis-server password and ignores the REDIS_PASSWORD
environment variable.

This was causing the ERR Client sent AUTH, but no password is set
error (as the client still passed the password correctly).

This change overrides the image command and set the password.

See open issue and solution: redis/docker-library-redis#46 (comment)

Surprisingly the `redis` image doesn't have a nicer way of setting
the `redis-server` password and ignores the `REDIS_PASSWORD`
environment variable.

This was causing the `ERR Client sent AUTH, but no password is set`
error (as the client still passed the password correctly).

This change overrides the image command and set the password.

See open issue and solution: redis/docker-library-redis#46 (comment)
@xoen xoen requested a review from andyhd September 3, 2019 11:19
@xoen xoen merged commit 54e78e1 into master Sep 3, 2019
@xoen xoen deleted the ag--docker-compose-redis-password branch September 3, 2019 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants