Dockerfile to build a Redis container for Dokku
- Redis service is supervised by runit
- Redis output is logged by runit
Redis built from source
The packages included with Ubuntu 14.04 LTS is comparatively old. This image build Redis directly from the upstream source.
The Configuration is tuned for
a medium sized redis instance with limits of 500MB memory, 512 connections and 3 databases. Additionally the append
only file has been enabled.
Using the image
To use this image with dokku-alt you need to set some configuration variables in
export REDIS_IMAGE=yabawock/dokku-alt-redis export REDIS_COMMAND=/sbin/my_init