chore: monorepo 工作区与开发环境

Bun workspaces + 根 tsconfig、开发用 PostgreSQL compose、.env.example(端口 18456、SK_KEY_ENCRYPTION_SECRET 等)。
This commit is contained in:
2026-10-06 01:30:51 +08:00
parent 4566ce8d58
commit 4c55c3f15f
6 changed files with 1443 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
services:
postgres:
image: postgres:17-alpine
container_name: new-api-key-usage-pg
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: new_api_key_usage
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d new_api_key_usage"]
interval: 5s
timeout: 3s
retries: 10
volumes:
pgdata: