feat: Docker配置优化,指定端口和数据目录

This commit is contained in:
Cuishibing
2026-04-26 21:03:07 +08:00
parent 3b241cd0d4
commit 6e5cfeb960
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@@ -43,4 +43,3 @@ next-env.d.ts
# data (local storage)
data/
uploads/
mysql_data/

View File

@@ -13,7 +13,7 @@ services:
ports:
- "9001:3306"
volumes:
- ./mysql_data:/var/lib/mysql
- /home/cui/mysql_data:/var/lib/mysql
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s