/docker-redis

Alpine based docker image to run redis

Primary LanguageShellGNU General Public License v3.0GPL-3.0

docker-redis

Alpine based Dockerfile for a redis image.

This repository has moved to: https://gitlab.com/container-email/redis

Differs from official docker image which by default forces write every second, this version lets os decide. It uses alpine version of redis with musl memory managment, the official docker version is compiled wih jemalloc. It also uses aof and rdb for better error recovery. If the "STUNNEL" environment variable is set then an stunnel server is started listeneing on port 6479 for ssl/tls connections, protected-mode is enabled so redis will only listen to the loopback interface. An stunnel client is then needed to connect, and the file /etc/stunnel/psk.txt must exist with the pre shared key in the format here

Docker Pulls Docker Stars Docker Image Version (tag latest semver) Github SHA

Github

Github Repository: https://github.com/a16bitsysop/docker-redis

Environment Variables

Name Desription Default
TIMEZONE Timezone to use inside the container, eg Europe/London unset
SIZE Increase in size that causes a rewrite to disc 16mb
PERCENT Percentage increase that causes a rewrite to disc 50
STUNNEL Use stunnel to encrypt redis traffic on port 6479 if set unset

Examples

To run a container with docker managed volume mount on /data on network MYNET (without exposing ports)

#docker container run --net MYNET --mount source=redis-data,destination=/data \
-d --name redis a16bitsysop/redis