Sign inSign up

skoep/redis

By skoep

•Updated about 1 month ago

A Redis in-memory database on current Debian with very simple and fast configuration.

Image
Databases & storage
0

1.8K

skoep/redis repository overview

⁠Welcome to Debian / Redis

This container image allows for quick and easy use of the Redis in-memory database. The configuration options are simple, but can be replaced with your own configuration at any time.

⁠Versioning (Tag)

Versioning is highly dependent on the current Debian version and the Redis version available for it.

MajorMinorPatchDebianRedisAdditional Information
110Trixie (13.2)8.0.2(nothing)
111Trixie (13.2)8.0.2Add Parameter: REDIS_PASSWORD, REDIS_SAVE_TIME and REDIS_SAVE_CHANGES
120Trixie (13.6)8.10.1New Trixie Version and original Redis Repository Version

⁠Configuration

At each startup, the configuration is rewritten using any existing environment variables. Unset environment variables are assigned default values, which can be found in the table below. However, if the file /etc/redis/redis-custom.conf is available via volumes in the configuration directory, Redis will start with this configuration file, which will not be modified.

⁠Environment

VariableDefaultDescription
REDIS_MEMORY1gmemory usage limit (maxmemory)
REDIS_MAXCLIENTS10000max number of connected clients at the same time (maxclients)
REDIS_DATABASES16max number of databases (databases)
REDIS_PASSWORDfalseset password, default: no password (requirepass)
REDIS_SAVE_TIME300save database every x seconds
REDIS_SAVE_CHANGES5save database only if x changes exists

⁠Volumes

Image files / DirectoriesUsing for
/etc/redis/redis-custom.confown custom configuration
/var/lib/redisDatabase Dump directory

⁠Example of a Compose file:

Starting the Redis server with the default values and using a maximum of 104857600 bytes of memory:

services:
  redis:
    image: docker.io/skoep/redis:latest
    container_name: redis
    hostname: redis
    domainname: example.com
    restart: unless-stopped
    ports:
      - "6379:6379"
    volumes:
      - /etc/localtime:/etc/localtime:ro
    environment:
      - REDIS_MEMORY=100mb

Starting the Redis server with your own configuration file:

services:
  redis:
    image: docker.io/skoep/redis:latest
    container_name: redis
    hostname: redis
    domainname: example.com
    restart: unless-stopped
    ports:
      - "6379:6379"
    volumes:
      - [your host configuration directory]/redis-custom.conf:/etc/redis/redis-custom.conf:ro
      - /etc/localtime:/etc/localtime:ro

⁠Example run for Podman

Create and Start with 250 Databases and dump Directory für the Database:

podman volume create redis
podman run \
    --detach \
    --name redis \
    --hostname redis \
    --tz "Europe/Berlin" \
    -p 6379:6379 \
    -v redis:/var/lib/redis:rw \
    -e REDIS_DATABASES=250 \
    --restart on-failure \
    docker.io/skoep/redis:latest

Tag summary

Content type

Image

Digest

sha256:dca9c0d70…

Size

107.5 MB

Last updated

about 1 month ago

docker pull skoep/redis