mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
fix: 添加redis卷, 修改host绑定端口
This commit is contained in:
parent
4891f18538
commit
7c1a4db5a9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user