From 9f2bf9e0591f322512f12b35770693d4730f705e Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 23 Nov 2023 15:37:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose-redis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker-compose-redis.yml diff --git a/docker-compose-redis.yml b/docker-compose-redis.yml new file mode 100644 index 0000000..7a6ecbc --- /dev/null +++ b/docker-compose-redis.yml @@ -0,0 +1,23 @@ +version: '3.8' + +services: + redis: + image: redis:7.2.3 + hostname: redis + container_name: redis + restart: always + ports: + - '6379:6379' + command: redis-server --save 20 1 --loglevel warning --requirepass redis6379 + volumes: + - redis_data:/data + networks: + redis_network: + +networks: + redis_network: + driver: bridge + +volumes: + redis_data: + driver: local \ No newline at end of file