Пример конфигурации redis в докере
Primary tabs
делаем так:
docker run -d --name=my-redis -p 6379:6379 redis ← to run redis container
docker ps ← to get container id
docker exec -it [your container id] redis-cli ← to run redis cli
CONFIG SET requirepass "mypassword" ← set password/secret key
CONFIG SET notify-keyspace-events Ex ← enable keyspace notifications on key expire event.
- Log in to post comments
- 718 reads