Skip to content

docs(observability): 补齐云上 GHCR + 同域名 /grafana/ 部署说明 - #394

Merged
gac0812 merged 2 commits into
1024XEngineer:mainfrom
gac0812:docs/observability-cloud-deploy
Aug 27, 2026
Merged

gac0812 merged 2 commits into
1024XEngineer:mainfrom
gac0812:docs/observability-cloud-deploy

Conversation

@gac0812

@gac0812 gac0812 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Compose 支持直接拉 ghcr.io/1024xengineer/timeflow-backend,云上不必再 --build 或放源码。
  • 观测 overlay 补上 Grafana 子路径、API healthcheck;Nginx 示例改为与 API 同域名的 /grafana/。
  • README 与 observability/README.md 写明国内 Docker Hub 镜像、.env 观测变量,以及 Sentry token 和 App DSN 的区别。

Test plan

  • docker compose -f docker-compose.yml -f docker-compose.observability.yml config 能通过
  • 本机 cp .env.example .env 后填 JWT 与 Grafana 密码,overlay 能起 Grafana
  • 按 observability/README.md 在无 backend/ 的目录用 GHCR 镜像 up -d --pull never
  • Nginx 同域名 /grafana/ 能打开登录页,/metrics 对公网 404

按同一台机器已有 API、无源码目录的实际部署补上子路径、健康检查和国内拉镜像步骤。
@gac0812
gac0812 marked this pull request as ready for review August 27, 2026 05:34
@codecov

codecov Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
backend 96.57% <ø> (ø)
frontend 89.92% <ø> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the complete compose, observability, environment, and Nginx changes. The /grafana/ routing and healthcheck wiring are coherent, but the new container environment handling exposes unrelated deployment secrets to the API and the documented plugin-disable fallback is ineffective with the current Compose interpolation. git diff --check passes; full Compose validation was unavailable because this workspace's Docker client has no Compose plugin.

Comment thread docker-compose.yml Resolved
Comment thread docker-compose.observability.yml Resolved
整份 .env 不应进入 API 容器,以免 Grafana/Sentry 密钥被带进去;插件回退改用 `-` 插值,空字符串才能真正跳过安装。

@LUPENGHAN LUPENGHAN left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@gac0812
gac0812 merged commit d7dc43d into 1024XEngineer:main Aug 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants