The latest version of Redis Docker has introduced TLS/ SSL features. But I am not able to figure out how to enable it for Redis Docker of the latest version.
Further, I would also like to know, how to modify the number of IO threads, for multithreading, also introduced in Redis 6, for a Docker environment?
2
Answers
BUILD_TLS is enabled for Docker’s Redis v6 image.
Configuring the Redis server in the container is done by:
docker -v /my/redis.conf:/redis.conf ... redis:6.0 /redis.conf
2023 update
If you just want a Docker container that has redis on it with SSL enabled here is what you need
Dockerfile
The generate_certificates.sh file simply uses openssl to generate all the required crt and key files
generate_certificates.sh
To run it just do
Once you are inside the shell of the redis container
you can try redis-cli and enter a simple command like
It ll immediately give you an error
You will need to run redis-cli with the certificates as
And try setting a value again and you should be able to get it to work now