feat: 添加数据库初始化SQL

This commit is contained in:
Cuishibing
2026-04-26 21:14:44 +08:00
parent d6017c7389
commit 6bf666d250
2 changed files with 46 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ services:
- "9001:3306"
volumes:
- /home/cui/mysql_data:/var/lib/mysql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s