Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.82 KB

README.md

File metadata and controls

52 lines (33 loc) · 1.82 KB

alpine-redis

A Docker image for running Redis, based on Alpine Linux. This image belongs to a suite of images documented here.

Features

This image features:

Versions

See VERSIONS.md for image contents.

Usage

To use this image include FROM smebberson/alpine-redis at the top of your Dockerfile, or simply docker run --name redis smebberson/alpine-redis.

Redis logs (access and error logs) are automatically streamed to stdout.

Customisation

This container comes setup as follows:

  • Redis is automatically started for you.
  • If Redis dies, so will the container.
  • A basic Redis configuration which you can review and customise.

To update the configuration:

  • Create a file called redis-local.conf, fill it with all of the config overrides that you require.
  • In your Dockerfile, copy this file to /etc/redis-local.conf.

Redis will start and load the config at /etc/redis.conf, and then load /etc/redis-local.conf and apply any overrides.

Example

An example of using this image can be found in examples/user-redis.