https://github.com/geeksloth/redis-docker-compose-template
A Redis Docker Compose simple template
https://github.com/geeksloth/redis-docker-compose-template
docker redis
Last synced: about 1 month ago
JSON representation
A Redis Docker Compose simple template
- Host: GitHub
- URL: https://github.com/geeksloth/redis-docker-compose-template
- Owner: geeksloth
- Created: 2022-11-25T09:36:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T10:06:04.000Z (over 3 years ago)
- Last Synced: 2025-10-20T06:35:13.428Z (8 months ago)
- Topics: docker, redis
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redis-Docker-Compose-template
A template that helps you quick start a Redis server easily.
### Fast run
1. Clone and get into this repo
```bash
git clone https://github.com/geeksloth/redis-docker-compose-template.git && cd redis-docker-compose-template
```
2. Run Docker Compose with detached flag
```bash
docker compose up -d
```
3. Connect to Redis with password: ```mysimplepassword```
### More Practical Way (recommended)
1. Clone and get into the repo by the 1st previous step.
```bash
git clone https://github.com/geeksloth/redis-docker-compose-template.git && cd redis-docker-compose-template
```
2. Change ```--requirepass 03fbc...669``` in *docker-compose.yml* file to your password. Which you can generate with **SHA-256** algorithm, or simply using online tools eg. [SHA256 Online](https://emn178.github.io/online-tools/sha256.html)
3. Modify the ```--save 20 1``` to save a snapshot of your database every 60 seconds if at least 1 write operation was performed.
4. Save your *docker-compose.yml* and run it by
```bash
docker compose up -d
```
5. Connect to your Redis with *your password* hashed in the step 2.