- Copy server certificate into
tls/server.crt
. - Copy server private key into
tls/server.key
. - Copy the client's CA certificate into
tls/ca.crt
if self-signed CA. - Update
requirepass
with your own password in bothconfig/redis.conf
andconfig/redis-docker.conf
if you wish to.
If you have redis installed, you can just start redis with this command.
$ redis-server config/redis.conf
To run redis in docker container, first build the docker image with this command.
$ docker build -t redis-custom .
When the build is finished, start the container with this command.
$ docker run -d --rm -p 8080:6379 --name redis redis-custom
You can use my redis-client tool to test connectivity.