A Redis in-memory database on current Debian with very simple and fast configuration.
1.8K
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 is highly dependent on the current Debian version and the Redis version available for it.
| Major | Minor | Patch | Debian | Redis | Additional Information |
|---|---|---|---|---|---|
| 1 | 1 | 0 | Trixie (13.2) | 8.0.2 | (nothing) |
| 1 | 1 | 1 | Trixie (13.2) | 8.0.2 | Add Parameter: REDIS_PASSWORD, REDIS_SAVE_TIME and REDIS_SAVE_CHANGES |
| 1 | 2 | 0 | Trixie (13.6) | 8.10.1 | New Trixie Version and original Redis Repository Version |
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.
| Variable | Default | Description |
|---|---|---|
| REDIS_MEMORY | 1g | memory usage limit (maxmemory) |
| REDIS_MAXCLIENTS | 10000 | max number of connected clients at the same time (maxclients) |
| REDIS_DATABASES | 16 | max number of databases (databases) |
| REDIS_PASSWORD | false | set password, default: no password (requirepass) |
| REDIS_SAVE_TIME | 300 | save database every x seconds |
| REDIS_SAVE_CHANGES | 5 | save database only if x changes exists |
| Image files / Directories | Using for |
|---|---|
| /etc/redis/redis-custom.conf | own custom configuration |
| /var/lib/redis | Database Dump directory |
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
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
Content type
Image
Digest
sha256:dca9c0d70…
Size
107.5 MB
Last updated
about 1 month ago
docker pull skoep/redis