feat: Docker Compose deployment + auto migration on startup

- docker-compose.yml: 移除 MySQL 容器,连宿主机 MySQL
- main.ts: 启动前通过独立 DataSource 执行 runMigrations
- migration-runner.ts: 独立 migration 执行器
- app.module.ts: TypeORM 配置增加 migrations
- 修复 InitialSchema 中 room_expenses 和 financial_operations 重复索引
This commit is contained in:
2026-07-20 12:43:13 +08:00
parent 4c2192d85e
commit 990c0c16e6
5 changed files with 33 additions and 8 deletions

View File

@@ -1,4 +1,3 @@
version: '3.8'
services:
backend: