fix: 修复本地与 Docker 启动脚本的数据库鉴权、端口冲突与镜像构建问题

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nixevol
2026-06-30 09:12:59 +08:00
co-authored by Cursor
parent 2fba42c9fd
commit 3bccd89028
9 changed files with 102 additions and 11 deletions
+3
View File
@@ -35,8 +35,11 @@ services:
command: >-
--character-set-server=utf8mb4
--collation-server=utf8mb4_0900_ai_ci
--default-authentication-plugin=mysql_native_password
volumes:
# 数据持久化卷:删库重来可执行 docker compose ... down -v(会清空数据,谨慎)
# 注:MySQL 账号的认证插件在"首次初始化数据卷"时确定;若改了上面的 auth 插件,
# 需 down -v 重置数据卷后才会对账号生效。
- artveris_mysql:/var/lib/mysql
healthcheck:
# 就绪探针:用 root 密码 ping,需与上面的 MYSQL_ROOT_PASSWORD 一致