Skip to main content

Redis Installation

Overview

This guide covers the installation and configuration of Redis for SAMO platform.

Docker Installation

Add the following service to your docker-compose.yml:

redis:
image: redis:8.2.1
restart: always
ports:
- "${redis_port}:6379"
environment:
- REDIS_PASSWORD=${redis_password}
volumes:
- ${data_dir}/redis:/data

Make sure to define the following variables in your .env file:

  • redis_port - The port to expose Redis on the host
  • redis_password - The password for Redis authentication
  • data_dir - The base directory for persistent data storage

Windows Installation

The official Redis documentation recommends using WSL (Windows Subsystem for Linux) for running Redis on Windows. Follow the Docker installation instructions above within your WSL environment.