From 7c1a4db5a9acbedb599545ae5894f4a0f4afc278 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Fri, 12 May 2023 11:03:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0redis=E5=8D=B7,=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9host=E7=BB=91=E5=AE=9A=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 29f935367..cec84d55a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: restart: unless-stopped tty: true ports: - - 3308:3306 + - 13306:3306 environment: MYSQL_DATABASE: ${MYSQL_DATABASE:-ruoyi-vue-pro} MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456} @@ -23,7 +23,9 @@ services: image: redis:6-alpine restart: unless-stopped ports: - - 6379:6379 + - 16379:6379 + volumes: + - redis:/data networks: - yudao-network @@ -89,3 +91,5 @@ networks: volumes: mysql: driver: local + redis: + driver: local