fix: 添加redis卷, 修改host绑定端口

This commit is contained in:
dhb52 2023-05-12 11:03:13 +08:00
parent 4891f18538
commit 7c1a4db5a9

View File

@ -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