{"id":29028050,"url":"https://github.com/cynegeirus/docker-redis","last_synced_at":"2025-06-26T07:05:26.434Z","repository":{"id":301132210,"uuid":"1008261796","full_name":"cynegeirus/docker-redis","owner":"cynegeirus","description":"This project provides a simple and reusable Redis server deployment using Docker Compose. It is configured for development and production environments where persistence, configurability, and security are required.","archived":false,"fork":false,"pushed_at":"2025-06-25T09:22:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-25T10:33:07.941Z","etag":null,"topics":["docker-redis","redis","redis-cache","redis-server"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cynegeirus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-25T09:19:24.000Z","updated_at":"2025-06-25T09:23:35.000Z","dependencies_parsed_at":"2025-06-25T10:44:25.461Z","dependency_job_id":null,"html_url":"https://github.com/cynegeirus/docker-redis","commit_stats":null,"previous_names":["cynegeirus/docker-redis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cynegeirus/docker-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fdocker-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fdocker-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fdocker-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fdocker-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cynegeirus","download_url":"https://codeload.github.com/cynegeirus/docker-redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cynegeirus%2Fdocker-redis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262018772,"owners_count":23245622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-redis","redis","redis-cache","redis-server"],"created_at":"2025-06-26T07:05:25.588Z","updated_at":"2025-06-26T07:05:26.415Z","avatar_url":"https://github.com/cynegeirus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis Docker Compose Setup\n\nThis project provides a simple and reusable **Redis** server deployment using **Docker Compose**. It is configured for development and production environments where persistence, configurability, and security are required.\n\n---\n\n## 📦 Services\n\n### Redis Server\n- **Image:** `redis:latest`\n- **Container Name:** `redis`\n- **Restart Policy:** Always\n- **Ports:** Exposes port `6379` to the host.\n- **Volumes:**\n  - `redis-data` for persistent Redis data storage.\n  - `redis-config` for Redis configuration files.\n\n---\n\n## 🚀 Getting Started\n\n### Prerequisites\nMake sure you have the following installed:\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n### How to Run\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/cynegeirus/docker-redis.git\n    cd docker-redis\n    ```\n\n2. Update the password in `docker-compose.yml`:\n    ```yaml\n    environment:\n      - REDIS_PASSWORD=YOUR_SECURE_PASSWORD\n    ```\n\n3. Start the services:\n    ```bash\n    docker-compose up -d\n    ```\n\n4. Redis will be available at:\n    ```\n    redis://localhost:6379\n    ```\n\n---\n\n## 🔐 Authentication\n\nYou must provide the Redis password when connecting:\n```bash\nredis-cli -h localhost -p 6379 -a YOUR_SECURE_PASSWORD\n````\n\nMake sure to replace `YOUR_SECURE_PASSWORD` with your configured password.\n\n---\n\n## 📂 Volumes\n\n* `redis-data`: Stores Redis persistent data to prevent data loss when the container is restarted.\n* `redis-config`: Stores Redis configuration files if you want to customize the Redis server settings.\n\n---\n\n## ⚙️ Configuration\n\nYou can add your custom Redis configuration files into the `redis-config` volume. Update the Redis startup command if you need to load a specific configuration file.\n\n---\n\n## 📌 Notes\n\n* The default number of databases is set to **16**.\n* The `REDIS_PASSWORD` environment variable does not configure the Redis password directly. You need to mount a custom configuration file with the `requirepass` directive or use the official Redis `--requirepass` argument in the command section.\n\nExample:\n\n```yaml\ncommand: [\"redis-server\", \"--requirepass\", \"YOUR_SECURE_PASSWORD\"]\n```\n\n---\n\n## ✅ Best Practices\n\n* Always use a strong password in production environments.\n* Consider restricting external access to the Redis port using firewall rules.\n* For advanced setups, configure persistence and security settings through a custom Redis configuration file.\n\n---\n\n## 📚 References\n\n* [Redis Documentation](https://redis.io/documentation)\n* [Docker Hub - Redis](https://hub.docker.com/_/redis)\n* [Docker Compose Documentation](https://docs.docker.com/compose/)\n\n---\n\n## 📜 License\n\nThis project is licensed under the [MIT License](LICENSE). See the license file for details.\n\n---\n\n## 🙌 Issues, Feature Requests or Support\n\nPlease use the Issue \u003e New Issue button to submit issues, feature requests or support issues directly to me. You can also send an e-mail to akin.bicer@outlook.com.tr.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcynegeirus%2Fdocker-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcynegeirus%2Fdocker-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcynegeirus%2Fdocker-redis/lists"}