Created
February 14, 2022 03:45
-
-
Save RICH0423/0308cd42bcc5e02152ea8ccda3ac3e6f to your computer and use it in GitHub Desktop.
run Redis and set password in docker for dev env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d \ | |
-h redis \ | |
-e REDIS_PASSWORD=passw0rd \ | |
-v redis-data:/data \ | |
-p 6379:6379 \ | |
--name redis \ | |
--restart always \ | |
redis:6.2.6-alpine /bin/sh -c 'redis-server --appendonly yes --requirepass ${REDIS_PASSWORD}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment