feat(0.2.1): M4-a 部署栈 —— compose(PG逻辑复制+powersync+app:13001), sync streams(任务域6表+User), initdb, DISABLE_CRON 开关, 健康检查端口跟随 PORT

This commit is contained in:
jif2.zhang
2026-10-25 23:57:51 +08:00
parent a4ab22588c
commit 034c87f955
10 changed files with 233 additions and 6 deletions
+2 -2
View File
@@ -72,9 +72,9 @@ ENV OTA_PACKAGE_DIR=/app/ota-package
# 生产为 http 明文 (无 https), 客户端 tauri.conf.json 的 hotswap.require_https 已设为 false 放行 http
ENV OTA_PUBLIC_BASE=http://bh.vps.honor3.com:3001
# 健康检查
# 健康检查 (端口跟随 PORT 环境变量, 0.2.1 部署为 13001)
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://127.0.0.1:3001/api/health || exit 1
CMD wget -qO- http://127.0.0.1:${PORT:-3001}/api/health || exit 1
EXPOSE 3001