Files
awoooi/ops/sentry-self-hosted/docker-compose.yml
OG T 9bff46a1b0 feat: integrate Sentry + fix CI/CD issues
Sentry Integration (補強 SignOz):
- Add @sentry/nextjs for frontend error tracking + session replay
- Add sentry-sdk[fastapi] for backend error tracking
- Create sentry.client/server/edge.config.ts
- Integrate with next.config.js + instrumentation.ts
- Add Sentry exception capture in FastAPI error handler
- Create deployment scripts for Self-Hosted @ 192.168.0.110

CI/CD Fixes:
- Fix F821 Undefined name 'Field' in incidents.py
- Add NEXT_PUBLIC_API_URL env var to CI build step
- Add build-arg to Docker build verification

E2E Test Improvements:
- Fix strict mode violations in dashboard-acceptance tests
- Add timeout increase for Phase 4 demo tests
- Make tests more resilient to UI variations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-24 15:19:52 +08:00

50 lines
2.4 KiB
YAML

# =============================================================================
# Sentry Self-Hosted for AWOOOI
# =============================================================================
# 部署位置: 192.168.0.110 (DevOps 金庫)
# 用途: Error Tracking + Session Replay (補強 SignOz)
#
# 安裝步驟:
# 1. git clone https://github.com/getsentry/self-hosted.git sentry
# 2. cd sentry && ./install.sh
# 3. docker compose up -d
#
# 官方文檔: https://develop.sentry.dev/self-hosted/
# =============================================================================
version: '3.8'
# 注意: Sentry Self-Hosted 使用官方 install.sh 腳本安裝
# 此檔案僅作為參考和文檔用途
# 實際部署請使用: https://github.com/getsentry/self-hosted
# 最低系統需求:
# - Docker 19.03.6+
# - Docker Compose 1.28.0+
# - 8GB RAM (推薦 16GB)
# - 20GB 硬碟空間
# 服務架構:
# ┌────────────────────────────────────────────────┐
# │ Sentry Self-Hosted │
# ├────────────────────────────────────────────────┤
# │ nginx (reverse proxy) → Port 9000 │
# │ web (Django) → Sentry UI │
# │ worker (Celery) → 背景任務 │
# │ cron → 定時任務 │
# │ ingest-consumer → 事件接收 │
# ├────────────────────────────────────────────────┤
# │ postgres → 主資料庫 │
# │ redis → 快取 + Queue │
# │ kafka + zookeeper → Event Stream │
# │ clickhouse → 查詢儲存 │
# │ snuba (多容器) → 查詢引擎 │
# │ symbolicator → Source Map │
# └────────────────────────────────────────────────┘
services:
# 此檔案僅為文檔,實際使用官方腳本
placeholder:
image: alpine:latest
command: echo "Use official install.sh from https://github.com/getsentry/self-hosted"