An open API service indexing awesome lists of open source software.

https://github.com/airattop/redis-self-hosted

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.
https://github.com/airattop/redis-self-hosted

airathalitov cache database devops docker docker-compose n8n redis redis-cache self-hosted

Last synced: 2 days ago
JSON representation

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.

Awesome Lists containing this project

README

          

# Redis Self-Hosted with Docker

![redis-self-hosted](https://repository-images.githubusercontent.com/1070414651/5ec543c2-c5c0-44a1-879a-1f48472b0c96)

This repository provides a `docker compose` setup to run a self-hosted [Redis](https://redis.io/) instance.

It is configured to connect to a shared Docker network, allowing easy integration with other services like [n8n](https://github.com/AiratTop/n8n-self-hosted).

## 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:**
```bash
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:
```bash
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](https://pass.airat.top) to create a strong password.

4. **Start the service:**
```bash
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](https://github.com/AiratTop/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:

- [**postgresql-self-hosted**](https://github.com/AiratTop/postgresql-self-hosted): A simple and robust PostgreSQL setup.
- [**mysql-self-hosted**](https://github.com/AiratTop/mysql-self-hosted): A self-hosted MySQL instance.
- [**clickhouse-self-hosted**](https://github.com/AiratTop/clickhouse-self-hosted): High-performance columnar database for analytics.
- [**metabase-self-hosted**](https://github.com/AiratTop/metabase-self-hosted): Self-hosted Metabase on Docker for business intelligence and analytics.
- [**qdrant-self-hosted**](https://github.com/AiratTop/qdrant-self-hosted): A vector database for AI applications.
- [**redis-self-hosted**](https://github.com/AiratTop/redis-self-hosted): A fast in-memory data store, often used as a cache or message broker.
- [**caddy-self-hosted**](https://github.com/AiratTop/caddy-self-hosted): A modern, easy-to-use web server with automatic HTTPS.
- [**wordpress-self-hosted**](https://github.com/AiratTop/wordpress-self-hosted): Production-ready WordPress stack with MySQL, phpMyAdmin, and WP-CLI.
- [**n8n-self-hosted**](https://github.com/AiratTop/n8n-self-hosted): Scalable n8n with workers, Caddy for auto-HTTPS, and backup scripts.
- [**monitoring-self-hosted**](https://github.com/AiratTop/monitoring-self-hosted): Self-hosted monitoring stack with Prometheus and Grafana.
- [**ollama-self-hosted**](https://github.com/AiratTop/ollama-self-hosted): Ready-to-use solution for running Ollama with the Open WebUI on Docker.
- [**authentik-self-hosted**](https://github.com/AiratTop/authentik-self-hosted): Authentik is a flexible, open-source Identity & Access Management (IAM) solution.
- [**gatus-self-hosted**](https://github.com/AiratTop/gatus-self-hosted): Automated service health dashboard with a PostgreSQL backend and backup scripts.
- [**beszel-self-hosted**](https://github.com/AiratTop/beszel-self-hosted): Ready-to-run Beszel hub + agent stack for monitoring your infrastructure.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

## Author

**AiratTop**

- Website: [airat.top](https://airat.top)
- GitHub: [@AiratTop](https://github.com/AiratTop)
- Email: [mail@airat.top](mailto:mail@airat.top)
- Repository: [redis-self-hosted](https://github.com/AiratTop/redis-self-hosted)