Skip to content

Generic Redis Docker image, used by Beach and Local Beach

Notifications You must be signed in to change notification settings

flownative/docker-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT license Maintenance level: Love

Flownative Redis Image

A Docker image providing Redis for Beach, Local Beach and other purposes.

Configuration

Environment variables

Variable Name Type Default Description
REDIS_BASE_PATH string /opt/flownative/redis Base path for Redis (read-only)
REDIS_CONF_PATH string /opt/flownative/redis/etc Configuration path for Redis (read-only)
REDIS_DATABASES integer 50 Maximum number of databases
REDIS_MAXMEMORY string 150mb Maximum memory
REDIS_MAXMEMORY_POLICY string allkeys-lru Policy for dealing with exhausted memory limit
REDIS_DAEMON_USER string redis Username for Redis daemon (read-only)
REDIS_DAEMON_GROUP string redis Group for Redis daemon (read-only)
REDIS_DISABLE_COMMANDS string A list of commands to disable
REDIS_PASSWORD string A clear text password for Redis authentication
REDIS_ALLOW_EMPTY_PASSWORD boolean false If Redis may start without a password set

Helm Chart

This Git repository also contains a Helm chart which can be used to deploy Redis using this Docker image.

Value Name Type Default Description
deployment.revisionHistoryLimit integer 1 Number of revisions to keep of deployments
resources.requests.cpu string 50m Requested CPU resources
resources.requests.memory string 128Mi Requested memory
resources.limit.cpu string 1 Limit for CPU usage
resources.limit.memory string 128Mi Limit for memory usage
image.pullSecrets string[] Optional array of secret names containing credentials
image.registry string docker.io Registry providing the Redis image
image.repository string flownative/redis Repository and image name of the Redis image
image.tag string {{ .Chart.AppVersion }} Tag of the Redis image
image.pullPolicy string Always Pull policy for the Redis image
redis.maxMemory integer 50000000 Maximum memory for Redis
redis.password integer A clear text password for Redis authentication
redis.credentialsSecret string Name of a secret containing the password (key: "password")

Building this image

Check the latest stable release on the tool's respective websites:

Security

Some draft notes about security:

  • the container can (and should) be started with --security-opt=no-new-privileges
  • in Kubernetes, the security context should be configured with allowPrivilegeEscalation: false
  • this repository contains a work-in-progress seccomp profile which may work but is not ready for production yet