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 restart: unless-stopped
tty: true tty: true
ports: ports:
- 3308:3306 - 13306:3306
environment: environment:
MYSQL_DATABASE: ${MYSQL_DATABASE:-ruoyi-vue-pro} MYSQL_DATABASE: ${MYSQL_DATABASE:-ruoyi-vue-pro}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456} MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-123456}
@ -23,7 +23,9 @@ services:
image: redis:6-alpine image: redis:6-alpine
restart: unless-stopped restart: unless-stopped
ports: ports:
- 6379:6379 - 16379:6379
volumes:
- redis:/data
networks: networks:
- yudao-network - yudao-network
@ -89,3 +91,5 @@ networks:
volumes: volumes:
mysql: mysql:
driver: local driver: local
redis:
driver: local