feat: 本地 dev 自动 SSH 隧道复用测试环境 PG(回退 SQLite)+ 测试机 PG 发布到本机回环

This commit is contained in:
Sisyphus committed 2026-08-25 23:26:11 +08:00
1 parent 0deabfed45
commit ab3da5a730
3 files changed
+51 -4

No files matched your search

+4
View File
@@ -66,6 +66,10 @@ jobs:
POSTGRES_DB: perler_lab
volumes:
- pg-data:/var/lib/postgresql/data
# 仅发布到测试机本机回环:供开发者 SSH 隧道连入本地 dev 使用,
# 不经过公网网卡,无安全组/DOCKER-USER 暴露问题
ports:
- "127.0.0.1:15432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U perler -d perler_lab"]
interval: 5s