Skip to content

Instantly share code, notes, and snippets.

@RICH0423
Created February 14, 2022 03:45
Show Gist options
  • Save RICH0423/0308cd42bcc5e02152ea8ccda3ac3e6f to your computer and use it in GitHub Desktop.
Save RICH0423/0308cd42bcc5e02152ea8ccda3ac3e6f to your computer and use it in GitHub Desktop.
run Redis and set password in docker for dev env
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