-
Notifications
You must be signed in to change notification settings - Fork 576
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
How do I set a password for redis? #176
Comments
You made the wrong position of the parameter. You should do it, like this:
|
Thank you, I will try |
Sharing this for other users: Volumedocker volume create redis-data Runningdocker run -d \
-h redis \
-e REDIS_PASSWORD=redis \
-v redis-data:/data \
-p 6379:6379 \
--name redis \
--restart always \
redis:5.0.5-alpine3.9 /bin/sh -c 'redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}' Removedocker rm -f redis
docker volume rm redis-data |
This worked for me
|
Thanks mate. It worked for me too! |
Thanks mate! |
Do you know if is possible update an container redis with this --requirepass ? |
It might be technically possible but I don't know of a container runtime that will restart a container with a new With |
For those wanting a syntax à-la Docker Compose v2, here you are:
The trick here was to double the |
For docker-compose.yml leave the username empty in the Redis URL.
|
There's a downside to doing it this way. Anyone doing a |
Anyone with access to the docker container will be able to see any secret no matter if it is encrypted with a DarkHold algorithm. |
The text was updated successfully, but these errors were encountered: