mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
dockerfile add 命令无法复制,导致没有初始化数据库。
使用数据卷来关联目录 Signed-off-by: 云飞扬 <15678871232@qq.com>
This commit is contained in:
@@ -24,6 +24,7 @@ services:
|
||||
ports:
|
||||
- "3306:3306"
|
||||
volumes:
|
||||
- ./mysql/db:/docker-entrypoint-initdb.d
|
||||
- ./mysql/conf:/etc/mysql/conf.d
|
||||
- ./mysql/logs:/logs
|
||||
- ./mysql/data:/var/lib/mysql
|
||||
|
||||
Reference in New Issue
Block a user