Levelrail
Skip to content

Self-host Redis Cache Starter with Docker ​

A web service backed by a Redis cache, the cache-aside pattern most apps reach for first.

This page describes the Levelrail template for Redis Cache Starter (Starter Kits). It deploys the services below as one Docker Compose app on your own server.

Project site: https://redis.io/docs/latest/develop/connect/clients/.

Recommended memory: about 192 MiB.

Services, ports and volumes ​

ServiceImageContainer portsVolumes
cacheredis:7-alpinenone
redis_cache_data -> /data
webnode:22-alpine3000none

Environment variables ​

ServiceVariableValue
webNODE_ENVPreset in the template
webREDIS_URLPreset in the template

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

Deploy Redis Cache Starter with Levelrail ​

In the dashboard, open Apps, choose New app, then Browse templates, and select Redis Cache Starter. Review the Compose body and deploy.

With the CLI:

levelrail-cli templates deploy redis-cache-starter --name my-redis-cache-starter

See Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.

More Starter Kits templates ​

All templates are listed in the self-host gallery.

Released under the Apache 2.0 License.