Skip to content

AiratTop/redis-self-hosted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Redis Self-Hosted with Docker

redis-self-hosted

This repository provides a docker compose setup to run a self-hosted Redis instance.

It is configured to connect to a shared Docker network, allowing easy integration with other services like n8n.

Features

  • Uses the official Redis Docker image.
  • Data is persisted in a local volume.
  • Pre-configured for a shared network.
  • Includes scripts for easy management.

Getting Started

  1. Clone the repository:

    git clone https://github.com/AiratTop/redis-self-hosted.git
    cd redis-self-hosted
  2. Create the shared network: If you haven't already, create the shared Docker network:

    docker network create shared_network
  3. Configure environment variables: Edit the .env file and set a secure password for REDIS_PWD. You can use my Open Source password generator to create a strong password.

  4. Start the service:

    docker compose up -d

Usage

  • Start: docker compose up -d
  • Restart: ./restart-docker.sh
  • Update: ./update-docker.sh (Pulls the latest Docker image and restarts)

Connecting with n8n

This setup is designed to work with the n8n-self-hosted configuration. Since both services are on the shared_network, you can connect to Redis from n8n using redis as the host and 6379 as the port.

See Also

Check out other self-hosted solutions:

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

AiratTop

About

A production-ready Docker Compose setup for self-hosting Redis. Includes data persistence, management scripts, and is pre-configured for easy integration with other services on a shared network.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages