From 613a776b5824ef3afccdd5f6c59c96a369f1efb1 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 30 Jun 2022 11:44:41 +0800 Subject: [PATCH] add redis-stack --- README.md | 1 + redis-stack/README.md | 27 +++++++++++++++++++++++++++ redis-stack/docker-compose.yml | 13 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 redis-stack/README.md create mode 100644 redis-stack/docker-compose.yml diff --git a/README.md b/README.md index a7c82cb..46ff4dc 100644 --- a/README.md +++ b/README.md @@ -411,6 +411,7 @@ A collection of delicious docker recipes. - [x] postgrest/postgrest - [x] prom/prometheus - [x] prosody/prosody +- [x] redis/redis-stack - [x] registry - [x] restic/rest-server - [x] rocker/rstudio diff --git a/redis-stack/README.md b/redis-stack/README.md new file mode 100644 index 0000000..d8f5023 --- /dev/null +++ b/redis-stack/README.md @@ -0,0 +1,27 @@ +redis-stack +=========== + +![](https://redis.io/images/redis-white.png) + +[Redis Stack][1] is an extension of Redis that adds modern data models and +processing engines to provide a complete developer experience. + +## docker-compose.yml + +```yaml +version: "3.8" +services: + redis-stack: + image: redis/redis-stack-server + ports: + - "6379:6379" + - "8001:8001" + volumes: + - ./data:/data + environment: + REDIS_ARGS: "--save 900 1" + REDISTIMESERIES_ARGS: "RETENTION_POLICY=20" + restart: unless-stopped +``` + +[1]: https://redis.io/docs/stack/ diff --git a/redis-stack/docker-compose.yml b/redis-stack/docker-compose.yml new file mode 100644 index 0000000..b47fe41 --- /dev/null +++ b/redis-stack/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3.8" +services: + redis-stack: + image: redis/redis-stack-server + ports: + - "6379:6379" + - "8001:8001" + volumes: + - ./data:/data + environment: + REDIS_ARGS: "--save 900 1" + REDISTIMESERIES_ARGS: "RETENTION_POLICY=20" + restart: unless-stopped